Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,9 @@ print(status_info["status"])
|
|
29 |
print(status_info["status_code"])
|
30 |
|
31 |
if status_info["status"] is False:
|
32 |
-
create_failed_gradio_ui(status_info)
|
|
|
|
|
33 |
else:
|
34 |
|
35 |
model = HfApiModel(
|
@@ -58,5 +60,5 @@ else:
|
|
58 |
)
|
59 |
|
60 |
# Launch the UI earlier or without passing through the Agent
|
61 |
-
|
62 |
|
|
|
29 |
print(status_info["status_code"])
|
30 |
|
31 |
if status_info["status"] is False:
|
32 |
+
interface = create_failed_gradio_ui(status_info)
|
33 |
+
# Launch the UI
|
34 |
+
interface.launch(show_error=True)
|
35 |
else:
|
36 |
|
37 |
model = HfApiModel(
|
|
|
60 |
)
|
61 |
|
62 |
# Launch the UI earlier or without passing through the Agent
|
63 |
+
GradioUI(agent).launch(debug=True, share=True, ssr=False)
|
64 |
|