Spaces:
Running
Running
Upload tool
Browse files- app.py +1 -0
- requirements.txt +1 -1
- 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"
|