Spaces:
Runtime error
Runtime error
Commit
·
0e10238
1
Parent(s):
9f0516e
Update app.py
Browse files
app.py
CHANGED
@@ -22,6 +22,6 @@ def caption_image(model_choice, image_path):
|
|
22 |
def launch(model_choice, input):
|
23 |
return caption_image(model_choice, input)
|
24 |
|
25 |
-
model_dropdown = gr.
|
26 |
iface = gr.Interface(launch, inputs=[model_dropdown, "text"], outputs="text")
|
27 |
iface.launch()
|
|
|
22 |
def launch(model_choice, input):
|
23 |
return caption_image(model_choice, input)
|
24 |
|
25 |
+
model_dropdown = gr.Dropdown(choices=list(CAPTION_MODELS.keys()), label='Model Choice')
|
26 |
iface = gr.Interface(launch, inputs=[model_dropdown, "text"], outputs="text")
|
27 |
iface.launch()
|