Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ moondream.eval()
|
|
26 |
def answer_questions(image_tuples, prompt_text):
|
27 |
result = ""
|
28 |
Q_and_A = ""
|
29 |
-
prompts = [p.strip() for p in prompt_text.split('
|
30 |
image_embeds = [img[0] for img in image_tuples if img[0] is not None]
|
31 |
answers = []
|
32 |
|
@@ -57,7 +57,7 @@ with gr.Blocks() as demo:
|
|
57 |
with gr.Row():
|
58 |
img = gr.Gallery(label="Upload Images", type="pil", preview=True, columns=4)
|
59 |
with gr.Row():
|
60 |
-
prompt = gr.Textbox(label="Input Prompts", placeholder="Enter prompts (one prompt for each image provided) separated by
|
61 |
with gr.Row():
|
62 |
submit = gr.Button("Submit")
|
63 |
with gr.Row():
|
|
|
26 |
def answer_questions(image_tuples, prompt_text):
|
27 |
result = ""
|
28 |
Q_and_A = ""
|
29 |
+
prompts = [p.strip() for p in prompt_text.split('?')]
|
30 |
image_embeds = [img[0] for img in image_tuples if img[0] is not None]
|
31 |
answers = []
|
32 |
|
|
|
57 |
with gr.Row():
|
58 |
img = gr.Gallery(label="Upload Images", type="pil", preview=True, columns=4)
|
59 |
with gr.Row():
|
60 |
+
prompt = gr.Textbox(label="Input Prompts", placeholder="Enter prompts (one prompt for each image provided) separated by question marks. Ex: Describe this image? What is in this image?", lines=8)
|
61 |
with gr.Row():
|
62 |
submit = gr.Button("Submit")
|
63 |
with gr.Row():
|