yetessam commited on
Commit
6dc9c22
·
verified ·
1 Parent(s): dfbdd52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- if not is_public_endpoint(endpoint_uri):
 
 
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: