Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,10 +21,10 @@ from Gradio_UI import GradioUI
|
|
21 |
# Get the URI for the endpoint
|
22 |
endpoint_uri = load_huggingface_model()
|
23 |
|
24 |
-
print(endpoint_uri)
|
25 |
-
print(is_public_endpoint(endpoint_uri))
|
26 |
# Test the endpoint
|
27 |
-
|
|
|
|
|
28 |
create_failed_gradio_ui()
|
29 |
|
30 |
else:
|
|
|
21 |
# Get the URI for the endpoint
|
22 |
endpoint_uri = load_huggingface_model()
|
23 |
|
|
|
|
|
24 |
# Test the endpoint
|
25 |
+
response = check_public_endpoint(endpoint_uri)
|
26 |
+
|
27 |
+
if response.status is False:
|
28 |
create_failed_gradio_ui()
|
29 |
|
30 |
else:
|