Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,12 +25,8 @@ endpoint_uri = load_huggingface_model()
|
|
| 25 |
|
| 26 |
status_info = check_public_endpoint(endpoint_uri)
|
| 27 |
|
| 28 |
-
print(status_info["status_code"])
|
| 29 |
-
print(status_info["response_data"])
|
| 30 |
-
print(status_info["message"])
|
| 31 |
-
|
| 32 |
if status_info["status"] is False:
|
| 33 |
-
create_failed_gradio_ui()
|
| 34 |
else:
|
| 35 |
|
| 36 |
model = HfApiModel(
|
|
|
|
| 25 |
|
| 26 |
status_info = check_public_endpoint(endpoint_uri)
|
| 27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
if status_info["status"] is False:
|
| 29 |
+
create_failed_gradio_ui(status_info)
|
| 30 |
else:
|
| 31 |
|
| 32 |
model = HfApiModel(
|