Update app.py
Browse files
app.py
CHANGED
|
@@ -83,10 +83,10 @@ def generate_answers(img=None, aud = None, q = None, max_tokens = 30):
|
|
| 83 |
|
| 84 |
# List of examples (image, audio, question, max_tokens)
|
| 85 |
examples = [
|
| 86 |
-
["./examples/Image_1.jpg", "Explain image?", 20],
|
| 87 |
-
["./examples/Image_2.jpg", "How many animals are there in image?", 10],
|
| 88 |
-
["./examples/Image_3.jpg", "What is in the image?", 20],
|
| 89 |
-
["./examples/Image_4.jpg", "What represents this Image?", 20],
|
| 90 |
]
|
| 91 |
|
| 92 |
with gr.Blocks() as demo:
|
|
@@ -113,7 +113,7 @@ with gr.Blocks() as demo:
|
|
| 113 |
# Add examples
|
| 114 |
# gr.Examples(examples=examples, inputs=[image, audio_q, question, max_tokens], outputs=answer)
|
| 115 |
# Add examples
|
| 116 |
-
gr.Examples(examples=examples, inputs=[image,
|
| 117 |
|
| 118 |
|
| 119 |
|
|
|
|
| 83 |
|
| 84 |
# List of examples (image, audio, question, max_tokens)
|
| 85 |
examples = [
|
| 86 |
+
["./examples/Image_1.jpg",None, "Explain image?", 20],
|
| 87 |
+
["./examples/Image_2.jpg",None, "How many animals are there in image?", 10],
|
| 88 |
+
["./examples/Image_3.jpg",None, "What is in the image?", 20],
|
| 89 |
+
["./examples/Image_4.jpg",None, "What represents this Image?", 20],
|
| 90 |
]
|
| 91 |
|
| 92 |
with gr.Blocks() as demo:
|
|
|
|
| 113 |
# Add examples
|
| 114 |
# gr.Examples(examples=examples, inputs=[image, audio_q, question, max_tokens], outputs=answer)
|
| 115 |
# Add examples
|
| 116 |
+
gr.Examples(examples=examples, inputs=[image, audio_q, question, max_tokens])
|
| 117 |
|
| 118 |
|
| 119 |
|