dlaima commited on
Commit
5bcaf70
·
verified ·
1 Parent(s): 0e4c183

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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, system_prompt=SYSTEM_PROMPT)
 
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):