Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ endpoint_uri = load_huggingface_model
|
|
| 20 |
|
| 21 |
# Test the endpoint
|
| 22 |
|
| 23 |
-
if not
|
| 24 |
create_failed_gradio_ui()
|
| 25 |
|
| 26 |
else:
|
|
|
|
| 20 |
|
| 21 |
# Test the endpoint
|
| 22 |
|
| 23 |
+
if not is_public_endpoint(endpoint_uri):
|
| 24 |
create_failed_gradio_ui()
|
| 25 |
|
| 26 |
else:
|