Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,12 +25,12 @@ import os
|
|
| 25 |
if "Mistral" not in os.environ:
|
| 26 |
os.environ["Mistral"] = getpass.getpass("Enter your Mistral API key: ")
|
| 27 |
|
| 28 |
-
|
| 29 |
print("Loading LLM...")
|
| 30 |
-
print(f"Model {chat.model} downloaded!")
|
| 31 |
chat = ChatMistralAI(
|
| 32 |
-
model="
|
| 33 |
)
|
|
|
|
|
|
|
| 34 |
# (Keep Constants as is)
|
| 35 |
# --- Constants ---
|
| 36 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
|
|
| 25 |
if "Mistral" not in os.environ:
|
| 26 |
os.environ["Mistral"] = getpass.getpass("Enter your Mistral API key: ")
|
| 27 |
|
|
|
|
| 28 |
print("Loading LLM...")
|
|
|
|
| 29 |
chat = ChatMistralAI(
|
| 30 |
+
model="Pixtral-Large-Instruct", mistral_api_key=os.getenv["Mistral"]
|
| 31 |
)
|
| 32 |
+
print(f"Model {chat.model} downloaded!")
|
| 33 |
+
|
| 34 |
# (Keep Constants as is)
|
| 35 |
# --- Constants ---
|
| 36 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|