Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -251,10 +251,10 @@ if __name__ == '__main__':
|
|
| 251 |
model_dict = load_models()
|
| 252 |
|
| 253 |
# define gradio demo
|
| 254 |
-
inputs = [gr.
|
| 255 |
]
|
| 256 |
|
| 257 |
-
outputs = gr.
|
| 258 |
|
| 259 |
title = "Socratic models for image captioning with BLOOM"
|
| 260 |
|
|
|
|
| 251 |
model_dict = load_models()
|
| 252 |
|
| 253 |
# define gradio demo
|
| 254 |
+
inputs = [gr.Image(type="pil", label="Image")
|
| 255 |
]
|
| 256 |
|
| 257 |
+
outputs = gr.JSON()
|
| 258 |
|
| 259 |
title = "Socratic models for image captioning with BLOOM"
|
| 260 |
|