Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -213,7 +213,7 @@ def infer(image_in, chosen_model):
|
|
| 213 |
raise gr.Error("Please provide an image input")
|
| 214 |
|
| 215 |
print(f"CHOSEN MODEL: {chosen_model}")
|
| 216 |
-
if chosen_model ==
|
| 217 |
raise gr.Error("Please pick a model")
|
| 218 |
|
| 219 |
gr.Info("Getting image caption with Kosmos2...")
|
|
|
|
| 213 |
raise gr.Error("Please provide an image input")
|
| 214 |
|
| 215 |
print(f"CHOSEN MODEL: {chosen_model}")
|
| 216 |
+
if chosen_model == [] :
|
| 217 |
raise gr.Error("Please pick a model")
|
| 218 |
|
| 219 |
gr.Info("Getting image caption with Kosmos2...")
|