ParisNeo
commited on
Commit
·
7130804
1
Parent(s):
acc116d
changed default question
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ class App():
|
|
29 |
self.image_source = gr.inputs.Image(shape=(224, 224))
|
30 |
with gr.Tabs():
|
31 |
with gr.Tab("Question/Answer"):
|
32 |
-
self.question = gr.inputs.Textbox(label="Custom question (if applicable)", default="
|
33 |
self.answer = gr.Button("Ask")
|
34 |
self.lbl_caption = gr.outputs.Label(label="Caption")
|
35 |
self.answer.click(self.answer_question_image, [self.image_source, self.question], self.lbl_caption)
|
|
|
29 |
self.image_source = gr.inputs.Image(shape=(224, 224))
|
30 |
with gr.Tabs():
|
31 |
with gr.Tab("Question/Answer"):
|
32 |
+
self.question = gr.inputs.Textbox(label="Custom question (if applicable)", default="Describe this image")
|
33 |
self.answer = gr.Button("Ask")
|
34 |
self.lbl_caption = gr.outputs.Label(label="Caption")
|
35 |
self.answer.click(self.answer_question_image, [self.image_source, self.question], self.lbl_caption)
|