m-ric HF staff commited on
Commit
c6aa194
·
verified ·
1 Parent(s): eb3f1cb

Upload tool

Browse files
Files changed (3) hide show
  1. app.py +1 -0
  2. requirements.txt +1 -1
  3. tool.py +1 -0
app.py CHANGED
@@ -1,4 +1,5 @@
1
  from smolagents import launch_gradio_demo
 
2
  from tool import SimpleTool
3
 
4
  tool = SimpleTool()
 
1
  from smolagents import launch_gradio_demo
2
+ from typing import Optional
3
  from tool import SimpleTool
4
 
5
  tool = SimpleTool()
requirements.txt CHANGED
@@ -1,2 +1,2 @@
1
- googlemaps
2
  smolagents
 
 
 
1
  smolagents
2
+ googlemaps
tool.py CHANGED
@@ -1,4 +1,5 @@
1
  from smolagents import Tool
 
2
 
3
  class SimpleTool(Tool):
4
  name = "get_travel_duration"
 
1
  from smolagents import Tool
2
+ from typing import Optional
3
 
4
  class SimpleTool(Tool):
5
  name = "get_travel_duration"