Spaces:
				
			
			
	
			
			
					
		Running
		
	
	
	
			
			
	
	
	
	
		
		
					
		Running
		
	Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -8,7 +8,7 @@ from tools.final_answer import FinalAnswerTool | |
| 8 | 
             
            from Gradio_UI import GradioUI
         | 
| 9 |  | 
| 10 | 
             
            @tool
         | 
| 11 | 
            -
            def  | 
| 12 | 
             
                #Keep this format for the description / args / args description but feel free to modify the tool
         | 
| 13 | 
             
                """A tool that does nothing yet 
         | 
| 14 | 
             
                Args:
         | 
| @@ -19,10 +19,11 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return | |
| 19 |  | 
| 20 | 
             
            @tool
         | 
| 21 | 
             
            def get_current_time_in_timezone(timezone: str) -> str:
         | 
| 22 | 
            -
                """ | 
| 23 | 
            -
             | 
| 24 | 
            -
                    timezone: A string representing a valid timezone (e.g., 'America/New_York').
         | 
| 25 | 
             
                """
         | 
|  | |
|  | |
| 26 | 
             
                try:
         | 
| 27 | 
             
                    # Create timezone object
         | 
| 28 | 
             
                    tz = pytz.timezone(timezone)
         | 
|  | |
| 8 | 
             
            from Gradio_UI import GradioUI
         | 
| 9 |  | 
| 10 | 
             
            @tool
         | 
| 11 | 
            +
            def get_valor_uf_hoy()-> str: #it's import to specify the return type
         | 
| 12 | 
             
                #Keep this format for the description / args / args description but feel free to modify the tool
         | 
| 13 | 
             
                """A tool that does nothing yet 
         | 
| 14 | 
             
                Args:
         | 
|  | |
| 19 |  | 
| 20 | 
             
            @tool
         | 
| 21 | 
             
            def get_current_time_in_timezone(timezone: str) -> str:
         | 
| 22 | 
            +
                """Una Herramienta que obtiene el valor de la UF Chile Hoy.
         | 
| 23 | 
            +
            Veremos que retorna
         | 
|  | |
| 24 | 
             
                """
         | 
| 25 | 
            +
                    url = "https://valor-uf.cl/"
         | 
| 26 | 
            +
                    response = requests.get(url)
         | 
| 27 | 
             
                try:
         | 
| 28 | 
             
                    # Create timezone object
         | 
| 29 | 
             
                    tz = pytz.timezone(timezone)
         | 

