Spaces:
Runtime error
Runtime error
Update app.py
Browse files3 unmodified lines4567891025 unmodified lines363738394039404142414243444546475 unmodified lines53545554565758593 unmodified linesimport pytzimport yamlfrom tools.final_answer import FinalAnswerToolfrom tools.web_search import DuckDuckGoSearchTool
from Gradio_UI import GradioUI
25 unmodified lines
final_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, 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 overloaded custom_role_conversions=None,)
5 unmodified lines agent = CodeAgent( model=model, tools=[final_answer], ## add your tools here (don't remove final answer) 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