Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ class BasicAgent:
|
|
| 14 |
def __init__(self):
|
| 15 |
print("Mistral Instruct Agent initialized.")
|
| 16 |
self.api_token = os.getenv("HF_API_TOKEN")
|
| 17 |
-
self.api_url = "https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.1"
|
| 18 |
self.headers = {
|
| 19 |
"Authorization": f"Bearer {self.api_token}",
|
| 20 |
"Content-Type": "application/json"
|
|
|
|
| 14 |
def __init__(self):
|
| 15 |
print("Mistral Instruct Agent initialized.")
|
| 16 |
self.api_token = os.getenv("HF_API_TOKEN")
|
| 17 |
+
self.api_url = "https://api-inference.huggingface.co/models/mistralai/Mistral-7B-Instruct-v0.1"
|
| 18 |
self.headers = {
|
| 19 |
"Authorization": f"Bearer {self.api_token}",
|
| 20 |
"Content-Type": "application/json"
|