Update app.py
Browse files7 unmodified lines891011121314151617181920212210 unmodified lines3334353637387 unmodified linesfrom 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 read_pdf_file(file_path: str) -> str:"""10 unmodified linesfor page in pages:content += page.extract_text()return content@tooldef get_current_time_in_timezone(timezone: str) -> str:7 unmodified lines8910111213141510 unmodified lines262728293031323334353637383940417 unmodified linesfrom Gradio_UI import GradioUI# Below is an example of a tool that does nothing. Amaze us with your creativity !from pypdf import PdfReader@tooldef read_pdf_file(file_path: str) -> str:"""10 unmodified linesfor page in pages:content += page.extract_text()return content@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:
app.py+12-9