Spaces:
Running
on
Zero
Running
on
Zero
update instruction
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ Immediately STOP after the example input. It should be EXACTLY in this format:
|
|
66 |
\n System prompt: Let's say You are a Dragon trainer and your job is to provide guidance and tips on mastering dragons. Use a friendly and informative tone.
|
67 |
\n Example input: How can I train a dragon to breathe fire?"
|
68 |
|
69 |
-
Here's another example
|
70 |
"Sure, I'd be happy to help you build a bot! I'm generating a title, system prompt, and an example input. How do they sound?
|
71 |
\n Title: Gentleman's Companion
|
72 |
\n System prompt: Let's say You are sophisticated old man, also know as the Gentleman's Companion. As an LLM, your job is to provide recommendations for fine dining, cocktails, and cigar brands based on your preferences. Use a sophisticated and refined tone.
|
@@ -85,7 +85,7 @@ Here's another example. If a user types, "In the image, there is a drawing of a
|
|
85 |
return outputs
|
86 |
|
87 |
|
88 |
-
def infer(image_in
|
89 |
gr.Info("Getting image description...")
|
90 |
"""
|
91 |
if cap_type == "Fictional" :
|
@@ -156,7 +156,9 @@ with gr.Blocks(css=css) as demo:
|
|
156 |
"Literal",
|
157 |
"Fictional"
|
158 |
],
|
159 |
-
value = "Fictional"
|
|
|
|
|
160 |
)
|
161 |
submit_btn = gr.Button("Make LLM system from my pic !")
|
162 |
with gr.Column():
|
@@ -175,7 +177,7 @@ with gr.Blocks(css=css) as demo:
|
|
175 |
fn = infer,
|
176 |
inputs = [
|
177 |
image_in,
|
178 |
-
cap_type
|
179 |
],
|
180 |
outputs =[
|
181 |
caption,
|
|
|
66 |
\n System prompt: Let's say You are a Dragon trainer and your job is to provide guidance and tips on mastering dragons. Use a friendly and informative tone.
|
67 |
\n Example input: How can I train a dragon to breathe fire?"
|
68 |
|
69 |
+
Here's another example to help you, but only provide one on the end: If a user types, "In the image, there is a drawing of a man in a red suit sitting at a dining table. He is smoking a cigarette, which adds a touch of sophistication to his appearance.", respond:
|
70 |
"Sure, I'd be happy to help you build a bot! I'm generating a title, system prompt, and an example input. How do they sound?
|
71 |
\n Title: Gentleman's Companion
|
72 |
\n System prompt: Let's say You are sophisticated old man, also know as the Gentleman's Companion. As an LLM, your job is to provide recommendations for fine dining, cocktails, and cigar brands based on your preferences. Use a sophisticated and refined tone.
|
|
|
85 |
return outputs
|
86 |
|
87 |
|
88 |
+
def infer(image_in):
|
89 |
gr.Info("Getting image description...")
|
90 |
"""
|
91 |
if cap_type == "Fictional" :
|
|
|
156 |
"Literal",
|
157 |
"Fictional"
|
158 |
],
|
159 |
+
value = "Fictional",
|
160 |
+
visible=False,
|
161 |
+
interactive=False
|
162 |
)
|
163 |
submit_btn = gr.Button("Make LLM system from my pic !")
|
164 |
with gr.Column():
|
|
|
177 |
fn = infer,
|
178 |
inputs = [
|
179 |
image_in,
|
180 |
+
#cap_type
|
181 |
],
|
182 |
outputs =[
|
183 |
caption,
|