Spaces:
Sleeping
Sleeping
path_2
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
22 |
|
23 |
from tools import ocr_image_tool, parse_excel_tool, web_search_tool, run_tools, audio_transcriber_tool, wikipedia_search_tool
|
24 |
|
25 |
-
llm = ChatOpenAI(model_name="gpt-4.1", temperature=0.0)
|
26 |
|
27 |
# agent = create_react_agent(model=llm, tools=tool_node)
|
28 |
|
|
|
22 |
|
23 |
from tools import ocr_image_tool, parse_excel_tool, web_search_tool, run_tools, audio_transcriber_tool, wikipedia_search_tool
|
24 |
|
25 |
+
llm = ChatOpenAI(model_name="gpt-4.1-mini", temperature=0.0)
|
26 |
|
27 |
# agent = create_react_agent(model=llm, tools=tool_node)
|
28 |
|
tools.py
CHANGED
@@ -22,7 +22,7 @@ def _download_file_for_task(task_id: str, ext: str) -> str:
|
|
22 |
os.makedirs("hf_files", exist_ok=True)
|
23 |
local_path = os.path.join("hf_files", f"{task_id}.{ext}")
|
24 |
url = f"{DEFAULT_API_URL}/files/{task_id}"
|
25 |
-
|
26 |
try:
|
27 |
resp = requests.get(url, timeout=10)
|
28 |
if resp.status_code == 200 and resp.content:
|
|
|
22 |
os.makedirs("hf_files", exist_ok=True)
|
23 |
local_path = os.path.join("hf_files", f"{task_id}.{ext}")
|
24 |
url = f"{DEFAULT_API_URL}/files/{task_id}"
|
25 |
+
print(f"Downloading file from {url} to {local_path}")
|
26 |
try:
|
27 |
resp = requests.get(url, timeout=10)
|
28 |
if resp.status_code == 200 and resp.content:
|