Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,9 +12,9 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
| 12 |
# ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------
|
| 13 |
class BasicAgent:
|
| 14 |
def __init__(self):
|
| 15 |
-
print("
|
| 16 |
self.api_token = os.getenv("HF_API_TOKEN")
|
| 17 |
-
self.api_url = "https://
|
| 18 |
self.headers = {
|
| 19 |
"Authorization": f"Bearer {self.api_token}",
|
| 20 |
"Content-Type": "application/json"
|
|
|
|
| 12 |
# ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------
|
| 13 |
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"
|