fffiloni commited on
Commit
ff0b641
1 Parent(s): 1e18cd1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 == None :
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...")