Spaces:
Sleeping
Sleeping
Update app.py
Browse files3 unmodified lines456789101112131415161718192021223 unmodified linesimport pytzimport yamlfrom tools.final_answer import FinalAnswerToolfrom Gradio_UI import GradioUI# Below is an example of a tool that does nothing. Amaze us with your creativity !@tooldef my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type#Keep this format for the description / args / args description but feel free to modify the tool"""A tool that does nothing yetArgs:arg1: the first argumentarg2: the second argument"""return "What magic will you build ?"@tooldef get_current_time_in_timezone(timezone: str) -> str:3 unmodified lines45678910111213141516171819202122233 unmodified linesimport pytzimport yamlfrom tools.final_answer import FinalAnswerToolimport numpy as npfrom Gradio_UI import GradioUI# Below is an example of a tool that does nothing. Amaze us with your creativity !@tooldef my_custom_tool(arg1:float, arg2:float)-> float: #it's import to specify the return type#Keep this format for the description / args / args description but feel free to modify the tool"""A tool generates a random float number from a uniform distributionArgs:arg1: low limitarg2: high limit"""return float(np.random.uniform(arg1, arg2))@tooldef get_current_time_in_timezone(timezone: str) -> str:
app.py+6-5