Idealcom commited on
Commit
4e1abb7
·
verified ·
1 Parent(s): a6403cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -24,7 +24,7 @@ class BasicAgent:
24
  api_key = os.getenv("GOOGLE_API_KEY")
25
 
26
  self.model = LiteLLMModel(
27
- model_id="gemini/gemini-2.5-pro",
28
  api_key=api_key
29
  )
30
 
@@ -118,7 +118,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
118
 
119
  try:
120
  # Attention : avec smolagents, utilise souvent agent.run() au lieu de agent() direct
121
- submitted_answer = agent.run(question_text)
122
  answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
123
  results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
124
  except Exception as e:
 
24
  api_key = os.getenv("GOOGLE_API_KEY")
25
 
26
  self.model = LiteLLMModel(
27
+ model_id="gemini/gemini-2.0-flash",
28
  api_key=api_key
29
  )
30
 
 
118
 
119
  try:
120
  # Attention : avec smolagents, utilise souvent agent.run() au lieu de agent() direct
121
+ submitted_answer = agent(question_text)
122
  answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
123
  results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
124
  except Exception as e: