mnavas commited on
Commit
883e0b4
·
verified ·
1 Parent(s): 42c3be8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,7 +16,7 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
16
  class BasicAgent:
17
  def __init__(self):
18
  os.environ["SERPAPI_API_KEY"] = "6c11429c7039d68e1f4d449e61f5ad7900eac7d2dad07bc8f40ed518215a6076"
19
- model = HfApiModel(model_id="mistralai/Mistral-7B-Instruct-v0.2"), #Qwen/Qwen2.5-Coder-32B-Instruct") #, provider="together")
20
  self.agent = CodeAgent(
21
  tools=[GoogleSearchTool()], #, PythonREPLTool()],
22
  model=model,
@@ -29,7 +29,7 @@ class BasicAgent:
29
  print(f"Agent received question (first 50 chars): {question[:50]}...")
30
  fixed_answer = self.agent.run(
31
  f"Answer the following question: {question}"
32
- ).content
33
  print(f"Agent returning fixed answer: {fixed_answer}")
34
  return fixed_answer
35
 
 
16
  class BasicAgent:
17
  def __init__(self):
18
  os.environ["SERPAPI_API_KEY"] = "6c11429c7039d68e1f4d449e61f5ad7900eac7d2dad07bc8f40ed518215a6076"
19
+ model = HfApiModel(model_id="mistralai/Mistral-7B-Instruct-v0.2") #Qwen/Qwen2.5-Coder-32B-Instruct") #, provider="together")
20
  self.agent = CodeAgent(
21
  tools=[GoogleSearchTool()], #, PythonREPLTool()],
22
  model=model,
 
29
  print(f"Agent received question (first 50 chars): {question[:50]}...")
30
  fixed_answer = self.agent.run(
31
  f"Answer the following question: {question}"
32
+ ) #.content
33
  print(f"Agent returning fixed answer: {fixed_answer}")
34
  return fixed_answer
35