fffiloni commited on
Commit
b3cd320
·
verified ·
1 Parent(s): cfb41e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -244,8 +244,8 @@ def infer(image_in, chosen_model, api_status):
244
  if chosen_model == [] :
245
  raise gr.Error("Please pick a model")
246
 
247
- if api_status == "api not ready yet" :
248
- raise gr.Error("This model is not ready yet, you can pick another one instead :)")
249
 
250
  gr.Info("Getting image caption with Kosmos-2...")
251
  user_prompt = get_caption(image_in)
 
244
  if chosen_model == [] :
245
  raise gr.Error("Please pick a model")
246
 
247
+ #if api_status == "api not ready yet" :
248
+ # raise gr.Error("This model is not ready yet, you can pick another one instead :)")
249
 
250
  gr.Info("Getting image caption with Kosmos-2...")
251
  user_prompt = get_caption(image_in)