Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ if not api_token:
|
|
| 9 |
raise ValueError("API token not found. Make sure 'API_TOKEN' is set in the Secrets.")
|
| 10 |
|
| 11 |
# Use the token in your request headers
|
| 12 |
-
API_URL = "https://api-inference.huggingface.co/models/
|
| 13 |
HEADERS = {"Authorization": f"Bearer {api_token}"}
|
| 14 |
|
| 15 |
# ... rest of your code ...
|
|
|
|
| 9 |
raise ValueError("API token not found. Make sure 'API_TOKEN' is set in the Secrets.")
|
| 10 |
|
| 11 |
# Use the token in your request headers
|
| 12 |
+
API_URL = "https://api-inference.huggingface.co/models/mistralai/Mistral-7B-Instruct-v0.3" # Corrected URL
|
| 13 |
HEADERS = {"Authorization": f"Bearer {api_token}"}
|
| 14 |
|
| 15 |
# ... rest of your code ...
|