Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import requests
|
|
3 |
import os
|
4 |
|
5 |
# Configure the endpoint and authentication
|
6 |
-
ENDPOINT_URL = os.environ.get("ENDPOINT_URL", "https://
|
7 |
# HF_API_TOKEN = os.environ.get("HF_API_TOKEN") # Get API token from environment variable
|
8 |
HF_API_TOKEN = os.environ.get("HF_API_TOKEN", "").strip() # Use strip() to remove extra whitespaces and newlines
|
9 |
|
|
|
3 |
import os
|
4 |
|
5 |
# Configure the endpoint and authentication
|
6 |
+
ENDPOINT_URL = os.environ.get("ENDPOINT_URL", "https://yoffo4n9o2y9reiw.us-east-1.aws.endpoints.huggingface.cloud")
|
7 |
# HF_API_TOKEN = os.environ.get("HF_API_TOKEN") # Get API token from environment variable
|
8 |
HF_API_TOKEN = os.environ.get("HF_API_TOKEN", "").strip() # Use strip() to remove extra whitespaces and newlines
|
9 |
|