Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
| 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
|
| 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:
|