Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,8 +9,8 @@ with open("system_prompts.json", "r", encoding="utf-8") as f:
|
|
9 |
TOOLS = list(SYSTEM_PROMPTS.keys())
|
10 |
|
11 |
# These are your HF Inference Endpoint settings
|
12 |
-
|
13 |
-
|
14 |
|
15 |
def run_mistral(prompt: str, text: str) -> str:
|
16 |
"""
|
|
|
9 |
TOOLS = list(SYSTEM_PROMPTS.keys())
|
10 |
|
11 |
# These are your HF Inference Endpoint settings
|
12 |
+
HF_API_TOKEN = os.environ["HF_TOKEN"]
|
13 |
+
HF_API_URL = "https://api-inference.huggingface.co/models/mistralai/Mistral-7B-Instruct-v0.2"
|
14 |
|
15 |
def run_mistral(prompt: str, text: str) -> str:
|
16 |
"""
|