Spaces:
Runtime error
Runtime error
Update app.py
Browse files3 unmodified lines45678925 unmodified lines35363738394041424344455 unmodified lines515253545556573 unmodified linesimport pytzimport yamlfrom tools.final_answer import FinalAnswerToolfrom Gradio_UI import GradioUI25 unmodified linesfinal_answer = FinalAnswerTool()model = HfApiModel(max_tokens=2096,temperature=0.5,model_id='https://wxknx1kg971u7k1n.us-east-1.aws.endpoints.huggingface.cloud',# it is possible that this model may be overloadedcustom_role_conversions=None,)5 unmodified linesagent = CodeAgent(model=model,tools=[final_answer], ## add your tools here (don't remove final answer)max_steps=6,verbosity_level=1,grammar=None,3 unmodified lines4567891025 unmodified lines3637383940414243444546475 unmodified lines535455565758593 unmodified linesimport pytzimport yamlfrom tools.final_answer import FinalAnswerToolfrom tools.web_search import DuckDuckGoSearchToolfrom Gradio_UI import GradioUI25 unmodified linesfinal_answer = FinalAnswerTool()web_search = DuckDuckGoSearchTool()model = HfApiModel(max_tokens=2096,temperature=0.5,model_id='https://wxknx1kg971u7k1n.us-east-1.aws.endpoints.huggingface.cloud',# it is possible that this model may be overloadedcustom_role_conversions=None,)5 unmodified linesagent = CodeAgent(model=model,tools=[final_answer, web_search, image_generation_tool, my_cutom_tool, get_current_time_in_timezone], ## add your tools here (don't remove final answer)max_steps=6,verbosity_level=1,grammar=None,
app.py+7-5