Spaces:
Sleeping
Sleeping
Increase LLM output size to 9999 and add success logging for processed tasks
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ in the list is a number or a string.
|
|
| 32 |
Here is the question:
|
| 33 |
"""
|
| 34 |
|
| 35 |
-
llm = HuggingFaceInferenceAPI(model_name='Qwen/Qwen3-32B', num_output=
|
| 36 |
wikipedia_tools = WikipediaToolSpec().to_tool_list()
|
| 37 |
search_tool = FunctionTool.from_defaults(DuckDuckGoSearchToolSpec().duckduckgo_full_search)
|
| 38 |
agent = AgentWorkflow.from_tools_or_functions(
|
|
@@ -109,6 +109,7 @@ async def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 109 |
submitted_answer = r.response.blocks[0].text
|
| 110 |
answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
|
| 111 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
|
|
|
|
| 112 |
except Exception as e:
|
| 113 |
print(f"Error running agent on task {task_id}: {e}")
|
| 114 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": f"AGENT ERROR: {e}"})
|
|
|
|
| 32 |
Here is the question:
|
| 33 |
"""
|
| 34 |
|
| 35 |
+
llm = HuggingFaceInferenceAPI(model_name='Qwen/Qwen3-32B', num_output=9999, temperature=0.01)
|
| 36 |
wikipedia_tools = WikipediaToolSpec().to_tool_list()
|
| 37 |
search_tool = FunctionTool.from_defaults(DuckDuckGoSearchToolSpec().duckduckgo_full_search)
|
| 38 |
agent = AgentWorkflow.from_tools_or_functions(
|
|
|
|
| 109 |
submitted_answer = r.response.blocks[0].text
|
| 110 |
answers_payload.append({"task_id": task_id, "submitted_answer": submitted_answer})
|
| 111 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": submitted_answer})
|
| 112 |
+
print(f"Successfully processed task ID: {task_id}, Question: {question_text}, Submitted Answer: {submitted_answer}")
|
| 113 |
except Exception as e:
|
| 114 |
print(f"Error running agent on task {task_id}: {e}")
|
| 115 |
results_log.append({"Task ID": task_id, "Question": question_text, "Submitted Answer": f"AGENT ERROR: {e}"})
|