Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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 |
-
|
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)
|