Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	Upload tool
Browse files- agent.json +8 -8
 - app.py +1 -1
 - requirements.txt +2 -2
 - tools/final_answer.py +1 -0
 - tools/visit_webpage.py +2 -1
 - tools/web_search.py +1 -0
 
    	
        agent.json
    CHANGED
    
    | 
         @@ -30,17 +30,17 @@ 
     | 
|
| 30 | 
         
             
                "name": null,
         
     | 
| 31 | 
         
             
                "description": null,
         
     | 
| 32 | 
         
             
                "authorized_imports": [
         
     | 
| 33 | 
         
            -
                    "pandas",
         
     | 
| 34 | 
         
            -
                    "random",
         
     | 
| 35 | 
         
            -
                    "statistics",
         
     | 
| 36 | 
         
            -
                    "unicodedata",
         
     | 
| 37 | 
         
            -
                    "datetime",
         
     | 
| 38 | 
         
             
                    "queue",
         
     | 
| 39 | 
         
            -
                    "time",
         
     | 
| 40 | 
         
             
                    "stat",
         
     | 
| 41 | 
         
            -
                    " 
     | 
| 
         | 
|
| 42 | 
         
             
                    "itertools",
         
     | 
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 43 | 
         
             
                    "re",
         
     | 
| 44 | 
         
            -
                    " 
     | 
| 
         | 
|
| 
         | 
|
| 45 | 
         
             
                ]
         
     | 
| 46 | 
         
             
            }
         
     | 
| 
         | 
|
| 30 | 
         
             
                "name": null,
         
     | 
| 31 | 
         
             
                "description": null,
         
     | 
| 32 | 
         
             
                "authorized_imports": [
         
     | 
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 33 | 
         
             
                    "queue",
         
     | 
| 
         | 
|
| 34 | 
         
             
                    "stat",
         
     | 
| 35 | 
         
            +
                    "collections",
         
     | 
| 36 | 
         
            +
                    "unicodedata",
         
     | 
| 37 | 
         
             
                    "itertools",
         
     | 
| 38 | 
         
            +
                    "math",
         
     | 
| 39 | 
         
            +
                    "pandas",
         
     | 
| 40 | 
         
            +
                    "random",
         
     | 
| 41 | 
         
             
                    "re",
         
     | 
| 42 | 
         
            +
                    "datetime",
         
     | 
| 43 | 
         
            +
                    "statistics",
         
     | 
| 44 | 
         
            +
                    "time"
         
     | 
| 45 | 
         
             
                ]
         
     | 
| 46 | 
         
             
            }
         
     | 
    	
        app.py
    CHANGED
    
    | 
         @@ -17,7 +17,7 @@ agent = CodeAgent( 
     | 
|
| 17 | 
         
             
                planning_interval=None,
         
     | 
| 18 | 
         
             
                name=None,
         
     | 
| 19 | 
         
             
                description=None,
         
     | 
| 20 | 
         
            -
                authorized_imports=[' 
     | 
| 21 | 
         
             
                prompts_path='./prompts.yaml'
         
     | 
| 22 | 
         
             
            )
         
     | 
| 23 | 
         | 
| 
         | 
|
| 17 | 
         
             
                planning_interval=None,
         
     | 
| 18 | 
         
             
                name=None,
         
     | 
| 19 | 
         
             
                description=None,
         
     | 
| 20 | 
         
            +
                authorized_imports=['queue', 'stat', 'collections', 'unicodedata', 'itertools', 'math', 'pandas', 'random', 're', 'datetime', 'statistics', 'time'],
         
     | 
| 21 | 
         
             
                prompts_path='./prompts.yaml'
         
     | 
| 22 | 
         
             
            )
         
     | 
| 23 | 
         | 
    	
        requirements.txt
    CHANGED
    
    | 
         @@ -1,5 +1,5 @@ 
     | 
|
| 
         | 
|
| 1 | 
         
             
            pandas
         
     | 
| 2 | 
         
            -
            markdownify
         
     | 
| 3 | 
         
             
            requests
         
     | 
| 4 | 
         
            -
             
     | 
| 5 | 
         
             
            duckduckgo_search
         
     | 
| 
         | 
|
| 1 | 
         
            +
            smolagents
         
     | 
| 2 | 
         
             
            pandas
         
     | 
| 
         | 
|
| 3 | 
         
             
            requests
         
     | 
| 4 | 
         
            +
            markdownify
         
     | 
| 5 | 
         
             
            duckduckgo_search
         
     | 
    	
        tools/final_answer.py
    CHANGED
    
    | 
         @@ -1,3 +1,4 @@ 
     | 
|
| 
         | 
|
| 1 | 
         
             
            from smolagents.tools import Tool
         
     | 
| 2 | 
         | 
| 3 | 
         
             
            class FinalAnswerTool(Tool):
         
     | 
| 
         | 
|
| 1 | 
         
            +
            from typing import Any, Optional
         
     | 
| 2 | 
         
             
            from smolagents.tools import Tool
         
     | 
| 3 | 
         | 
| 4 | 
         
             
            class FinalAnswerTool(Tool):
         
     | 
    	
        tools/visit_webpage.py
    CHANGED
    
    | 
         @@ -1,7 +1,8 @@ 
     | 
|
| 
         | 
|
| 1 | 
         
             
            from smolagents.tools import Tool
         
     | 
| 2 | 
         
            -
            import smolagents
         
     | 
| 3 | 
         
             
            import requests
         
     | 
| 4 | 
         
             
            import markdownify
         
     | 
| 
         | 
|
| 5 | 
         | 
| 6 | 
         
             
            class VisitWebpageTool(Tool):
         
     | 
| 7 | 
         
             
                name = "visit_webpage"
         
     | 
| 
         | 
|
| 1 | 
         
            +
            from typing import Any, Optional
         
     | 
| 2 | 
         
             
            from smolagents.tools import Tool
         
     | 
| 
         | 
|
| 3 | 
         
             
            import requests
         
     | 
| 4 | 
         
             
            import markdownify
         
     | 
| 5 | 
         
            +
            import smolagents
         
     | 
| 6 | 
         | 
| 7 | 
         
             
            class VisitWebpageTool(Tool):
         
     | 
| 8 | 
         
             
                name = "visit_webpage"
         
     | 
    	
        tools/web_search.py
    CHANGED
    
    | 
         @@ -1,3 +1,4 @@ 
     | 
|
| 
         | 
|
| 1 | 
         
             
            from smolagents.tools import Tool
         
     | 
| 2 | 
         
             
            import duckduckgo_search
         
     | 
| 3 | 
         | 
| 
         | 
|
| 1 | 
         
            +
            from typing import Any, Optional
         
     | 
| 2 | 
         
             
            from smolagents.tools import Tool
         
     | 
| 3 | 
         
             
            import duckduckgo_search
         
     | 
| 4 | 
         |