mgerlitz commited on
Commit
095004c
·
verified ·
1 Parent(s): b411c43

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -70,6 +70,8 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
70
  prompt_templates=prompt_templates
71
  )
72
 
 
 
73
 
74
  #agent = BasicAgent()
75
  except Exception as e:
@@ -112,7 +114,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
112
  continue
113
  try:
114
  #submitted_answer = agent.run(question_text)
115
- submitted_answer = agent.run("Can you give me a nice one-day trip around Paris with a few locations and the times? Could be in the city or outside, but should fit in one day. I'm travelling only with a rented bicycle.")
116
  answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
117
  results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
118
  except Exception as e:
 
70
  prompt_templates=prompt_templates
71
  )
72
 
73
+ model = InferenceClientModel()
74
+ agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=model)
75
 
76
  #agent = BasicAgent()
77
  except Exception as e:
 
114
  continue
115
  try:
116
  #submitted_answer = agent.run(question_text)
117
+ submitted_answer = agent.run("How many seconds would it take for a leopard at full speed to run through Pont des Arts?")
118
  answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
119
  results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
120
  except Exception as e: