Spaces:
Sleeping
Sleeping
change additional_args's default value to None
Browse files
app.py
CHANGED
|
@@ -64,7 +64,7 @@ class BasicAgent:
|
|
| 64 |
)
|
| 65 |
print("BasicAgent initialized.")
|
| 66 |
|
| 67 |
-
def __call__(self, question: str, additional_args: dict
|
| 68 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 69 |
answer = self.agent.run(task=question, additional_args=additional_args)
|
| 70 |
print(f"Agent returning answer: {answer}")
|
|
@@ -128,7 +128,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 128 |
task_id = item.get("task_id")
|
| 129 |
question_text = item.get("question")
|
| 130 |
|
| 131 |
-
file_info =
|
| 132 |
|
| 133 |
if item.get("file_name"):
|
| 134 |
file_name = item.get("file_name")
|
|
|
|
| 64 |
)
|
| 65 |
print("BasicAgent initialized.")
|
| 66 |
|
| 67 |
+
def __call__(self, question: str, additional_args: dict | None) -> str:
|
| 68 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 69 |
answer = self.agent.run(task=question, additional_args=additional_args)
|
| 70 |
print(f"Agent returning answer: {answer}")
|
|
|
|
| 128 |
task_id = item.get("task_id")
|
| 129 |
question_text = item.get("question")
|
| 130 |
|
| 131 |
+
file_info = None
|
| 132 |
|
| 133 |
if item.get("file_name"):
|
| 134 |
file_name = item.get("file_name")
|