ahmer64 commited on
Commit
d55a7bb
·
verified ·
1 Parent(s): 5e170e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -16,7 +16,13 @@ import os
16
  class BasicAgent:
17
  def __init__(self):
18
  print("Smart Agent initialized.")
19
- self.model = InferenceClientModel(token=os.getenv("Sayyid"))
 
 
 
 
 
 
20
  self.agent = CodeAgent(
21
  tools=[DuckDuckGoSearchTool()],
22
  model=self.model,
@@ -45,7 +51,6 @@ Question:
45
  return str(answer).strip()
46
 
47
 
48
-
49
  def run_and_submit_all( profile: gr.OAuthProfile | None):
50
  """
51
  Fetches all questions, runs the BasicAgent on them, submits all answers,
 
16
  class BasicAgent:
17
  def __init__(self):
18
  print("Smart Agent initialized.")
19
+
20
+ self.model = InferenceClientModel(
21
+ model_id="Qwen/Qwen2.5-Coder-32B-Instruct",
22
+ provider="hf-inference",
23
+ token=os.getenv("Sayyid")
24
+ )
25
+
26
  self.agent = CodeAgent(
27
  tools=[DuckDuckGoSearchTool()],
28
  model=self.model,
 
51
  return str(answer).strip()
52
 
53
 
 
54
  def run_and_submit_all( profile: gr.OAuthProfile | None):
55
  """
56
  Fetches all questions, runs the BasicAgent on them, submits all answers,