Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def answer_questions(image_tuples, prompt_text):
|
|
25 |
prompts = [p.strip() for p in prompt_text.split(',')]
|
26 |
image_embeds = [img[0] for img in image_tuples if img[0] is not None]
|
27 |
|
28 |
-
print(f"\nprompts: {prompts}\n\n")
|
29 |
answers = []
|
30 |
for prompt in prompts:
|
31 |
image_answers = moondream.batch_answer(
|
@@ -43,7 +43,7 @@ def answer_questions(image_tuples, prompt_text):
|
|
43 |
Q_and_A += f"**{image_name} A:** \n {answer_text} \n\n"
|
44 |
|
45 |
result = {'headers': prompts, 'data': answers}
|
46 |
-
print(f"result\n{result}\n\nQ_and_A\n{Q_and_A}\n\n")
|
47 |
return Q_and_A, result
|
48 |
|
49 |
with gr.Blocks() as demo:
|
|
|
25 |
prompts = [p.strip() for p in prompt_text.split(',')]
|
26 |
image_embeds = [img[0] for img in image_tuples if img[0] is not None]
|
27 |
|
28 |
+
#print(f"\nprompts: {prompts}\n\n")
|
29 |
answers = []
|
30 |
for prompt in prompts:
|
31 |
image_answers = moondream.batch_answer(
|
|
|
43 |
Q_and_A += f"**{image_name} A:** \n {answer_text} \n\n"
|
44 |
|
45 |
result = {'headers': prompts, 'data': answers}
|
46 |
+
#print(f"result\n{result}\n\nQ_and_A\n{Q_and_A}\n\n")
|
47 |
return Q_and_A, result
|
48 |
|
49 |
with gr.Blocks() as demo:
|