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