Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -88,7 +88,7 @@ with gr.Blocks(
|
|
88 |
with gr.Row():
|
89 |
clear_button = gr.Button(value="Clear", interactive=True)
|
90 |
submit_button = gr.Button(
|
91 |
-
value="
|
92 |
)
|
93 |
'''
|
94 |
cap_submit_button = gr.Button(
|
@@ -101,7 +101,7 @@ with gr.Blocks(
|
|
101 |
with gr.Column():
|
102 |
caption_output_v1 = gr.Textbox(lines=0, label="CAP+LLM")
|
103 |
caption_output = gr.Textbox(lines=0, label="VQA ")
|
104 |
-
gpt3_output_v1 = gr.Textbox(lines=0, label="VQA+LLM")
|
105 |
|
106 |
|
107 |
image_input.change(
|
@@ -151,10 +151,10 @@ with gr.Blocks(
|
|
151 |
[gpt3_output_v1],
|
152 |
)
|
153 |
'''
|
154 |
-
examples=[['bird.jpeg',"How many birds are there in the tree?"],['qa9.jpg',"What type of vehicle is being pulled by the horses ?"]]
|
155 |
examples = gr.Examples(
|
156 |
examples=examples,
|
157 |
-
inputs=[image_input, chat_input],
|
158 |
)
|
159 |
|
160 |
iface.queue(concurrency_count=1, api_open=False, max_size=10)
|
|
|
88 |
with gr.Row():
|
89 |
clear_button = gr.Button(value="Clear", interactive=True)
|
90 |
submit_button = gr.Button(
|
91 |
+
value="Submit", interactive=True, variant="primary"
|
92 |
)
|
93 |
'''
|
94 |
cap_submit_button = gr.Button(
|
|
|
101 |
with gr.Column():
|
102 |
caption_output_v1 = gr.Textbox(lines=0, label="CAP+LLM")
|
103 |
caption_output = gr.Textbox(lines=0, label="VQA ")
|
104 |
+
gpt3_output_v1 = gr.Textbox(lines=0, label="VQA+CAP+LLM")
|
105 |
|
106 |
|
107 |
image_input.change(
|
|
|
151 |
[gpt3_output_v1],
|
152 |
)
|
153 |
'''
|
154 |
+
examples=[['bird.jpeg',"How many birds are there in the tree?","There are two birds in the tree.","2","2"],['qa9.jpg',"What type of vehicle is being pulled by the horses ?",'The vehicle being pulled by the horses is likely a sleigh.','carriage','Sled'],['upload4.jpg',"What is this old man doing?","","",""]]
|
155 |
examples = gr.Examples(
|
156 |
examples=examples,
|
157 |
+
inputs=[image_input, chat_input,caption_output_v1,caption_output,gpt3_output_v1],
|
158 |
)
|
159 |
|
160 |
iface.queue(concurrency_count=1, api_open=False, max_size=10)
|