Spaces:
Sleeping
Sleeping
Update app.py
Browse files12336 unmodified lines40414243444546474849from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,toolimport datetimeimport requests36 unmodified lines# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'model = HfApiModel(max_tokens=2096,temperature=0.5,model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloadedcustom_role_conversions=None,)1234567891036 unmodified lines4748495051525354555657import osimport spaces@spaces.GPUdef _register_zerogpu():return Nonefrom smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,toolimport datetimeimport requests36 unmodified lines# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'model = HfApiModel(max_tokens=2096,temperature=0.5,model_id="Qwen/Qwen2.5-Coder-32B-Instruct",token=os.getenv("HF_TOKEN"),custom_role_conversions=None,)
app.py+12-4