Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -58,10 +58,10 @@ class GaiaAgent:
|
|
| 58 |
if not q:
|
| 59 |
raise ValueError(f"No question text found in: {question}")
|
| 60 |
|
| 61 |
-
|
| 62 |
Question: {q}
|
| 63 |
Answer:"""
|
| 64 |
-
|
| 65 |
|
| 66 |
def run(self):
|
| 67 |
print("🚀 [RUN] Starting submission...")
|
|
|
|
| 58 |
if not q:
|
| 59 |
raise ValueError(f"No question text found in: {question}")
|
| 60 |
|
| 61 |
+
prompt = f"""You are a helpful agent answering a science question.
|
| 62 |
Question: {q}
|
| 63 |
Answer:"""
|
| 64 |
+
return self.generate(prompt).strip()
|
| 65 |
|
| 66 |
def run(self):
|
| 67 |
print("🚀 [RUN] Starting submission...")
|