Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,9 +42,11 @@ class MyAgent(CodeAgent):
|
|
| 42 |
def __init__(self):
|
| 43 |
model = HfApiModel(
|
| 44 |
model="cognitivecomputations/dolphin-2.6-mixtral-8x7b",
|
| 45 |
-
api_key=os.getenv("HF_API_TOKEN", "").strip()
|
|
|
|
| 46 |
)
|
| 47 |
-
super().__init__(model=model, tools=tools
|
|
|
|
| 48 |
|
| 49 |
# Evaluation + Submission function
|
| 50 |
def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
|
|
| 42 |
def __init__(self):
|
| 43 |
model = HfApiModel(
|
| 44 |
model="cognitivecomputations/dolphin-2.6-mixtral-8x7b",
|
| 45 |
+
api_key=os.getenv("HF_API_TOKEN", "").strip(),
|
| 46 |
+
system_prompt=SYSTEM_PROMPT # ✅ Pass system prompt here
|
| 47 |
)
|
| 48 |
+
super().__init__(model=model, tools=tools)
|
| 49 |
+
|
| 50 |
|
| 51 |
# Evaluation + Submission function
|
| 52 |
def run_and_submit_all(profile: gr.OAuthProfile | None):
|