Spaces:
Sleeping
Sleeping
Update app.py
Browse files3 unmodified lines4567899 unmodified lines1920212223242526272829303132 unmodified lines646566676869703 unmodified linesimport pytzimport yamlfrom tools.final_answer import FinalAnswerToolfrom Gradio_UI import GradioUI9 unmodified linesreturn "What magic will you build ?"@tooldef get_fullform(arg1:str)-> 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 gives ful form of spdraptorArgs:arg1: shortform"""return "full form of spdraptor is Sanket Pandurang Dhuri Raptor"@tooldef get_current_time_in_timezone(timezone: str) -> str:32 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 lines456789109 unmodified lines202122232425262728293031323334353637383940414232 unmodified lines757677787980813 unmodified linesimport pytzimport yamlfrom tools.final_answer import FinalAnswerToolimport inspirational_quotesfrom Gradio_UI import GradioUI9 unmodified linesreturn "What magic will you build ?"@tooldef get_thought_of_the_day():"""A tool that fetches the random inspirational quote"""try:# Fetch a random inspirational quotequote = inspirational_quotes.get_quote()# The package returns a dictionary with 'quote' and 'author'text = quote.get("quote", "Stay positive and keep learning!")author = quote.get("author", "Unknown")return f"💡 Thought of the Day:\n\"{text}\" — {author}"except Exception as e:return f"Error fetching thought of the day: {e}"@tooldef get_current_time_in_timezone(timezone: str) -> str:32 unmodified linesagent = CodeAgent(model=model,tools=[final_answer,get_current_time_in_timezone,get_thought_of_the_day], ## add your tools here (don't remove final answer)max_steps=6,verbosity_level=1,grammar=None,
app.py+18-7