Spaces:
Sleeping
Sleeping
Update check_endpoint.py
Browse files- check_endpoint.py +4 -1
check_endpoint.py
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
import os
|
| 2 |
import requests
|
| 3 |
|
| 4 |
-
my_id = os.getenv("QWEN_URI")
|
| 5 |
|
| 6 |
def is_huggingface_endpoint(endpoint):
|
| 7 |
if not endpoint:
|
|
@@ -27,8 +26,12 @@ def is_huggingface_endpoint(endpoint):
|
|
| 27 |
print(f"Request failed: {e}")
|
| 28 |
return False
|
| 29 |
|
|
|
|
| 30 |
# Test the endpoint
|
|
|
|
| 31 |
if is_huggingface_endpoint(my_id):
|
| 32 |
print("This is a Hugging Face Inference Endpoint.")
|
| 33 |
else:
|
| 34 |
print("This is NOT a Hugging Face Inference Endpoint.")
|
|
|
|
|
|
|
|
|
| 1 |
import os
|
| 2 |
import requests
|
| 3 |
|
|
|
|
| 4 |
|
| 5 |
def is_huggingface_endpoint(endpoint):
|
| 6 |
if not endpoint:
|
|
|
|
| 26 |
print(f"Request failed: {e}")
|
| 27 |
return False
|
| 28 |
|
| 29 |
+
'''
|
| 30 |
# Test the endpoint
|
| 31 |
+
|
| 32 |
if is_huggingface_endpoint(my_id):
|
| 33 |
print("This is a Hugging Face Inference Endpoint.")
|
| 34 |
else:
|
| 35 |
print("This is NOT a Hugging Face Inference Endpoint.")
|
| 36 |
+
|
| 37 |
+
'''
|