Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ import requests
|
|
| 5 |
# Retrieve the API token from environment variables
|
| 6 |
model_repo_id = os.getenv("MODEL_REPO_ID")
|
| 7 |
if not model_repo_id:
|
| 8 |
-
raise ValueError("MODEL_REPO_ID token not found. Please set the
|
| 9 |
|
| 10 |
# Hugging Face Inference API Details
|
| 11 |
API_URL = "https://api-inference.huggingface.co/models/meta-llama/Llama-3.2-1B-Instruct"
|
|
|
|
| 5 |
# Retrieve the API token from environment variables
|
| 6 |
model_repo_id = os.getenv("MODEL_REPO_ID")
|
| 7 |
if not model_repo_id:
|
| 8 |
+
raise ValueError("MODEL_REPO_ID token not found. Please set the MODEL_REPO_ID environment variable.")
|
| 9 |
|
| 10 |
# Hugging Face Inference API Details
|
| 11 |
API_URL = "https://api-inference.huggingface.co/models/meta-llama/Llama-3.2-1B-Instruct"
|