Spaces:
Sleeping
Sleeping
Update app.py
Browse files159 unmodified lines160161162163164165166167168169170171109 unmodified lines281282283284285286287159 unmodified lineslast_err = str(e)if data is None:return f"ERROR: could not download file for task '{task_id}': {last_err}"try:req = urllib.request.Request(url, headers={"User-Agent": "HF-AgentsCourse/1.0"})with urllib.request.urlopen(req, timeout=30) as resp:data = resp.read()except Exception as e:return f"ERROR: could not download file for task '{task_id}': {e}"ext = pathlib.Path(file_name).suffix.lower()try:109 unmodified linesmodel = InferenceClientModel(model_id="Qwen/Qwen2.5-72B-Instruct",token=os.getenv("HF_API_TOKEN"),provider="hf-inference",)return CodeAgent(tools=[159 unmodified lines160161162163164165109 unmodified lines275276277278279280159 unmodified lineslast_err = str(e)if data is None:return f"ERROR: could not download file for task '{task_id}': {last_err}"ext = pathlib.Path(file_name).suffix.lower()try:109 unmodified linesmodel = InferenceClientModel(model_id="Qwen/Qwen2.5-72B-Instruct",token=os.getenv("HF_API_TOKEN"),)return CodeAgent(tools=[
app.py-7