Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,11 +1,11 @@
|
|
| 1 |
-
from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tools
|
| 2 |
import datetime
|
| 3 |
import requests
|
| 4 |
import pytz
|
| 5 |
import yaml
|
| 6 |
import gradio as gr
|
| 7 |
from tools.final_answer import FinalAnswerTool
|
| 8 |
-
|
| 9 |
from Gradio_UI import GradioUI
|
| 10 |
|
| 11 |
@tool
|
|
@@ -20,7 +20,7 @@ def calculator(a: int, b: int) -> int:
|
|
| 20 |
"""
|
| 21 |
return a * b
|
| 22 |
|
| 23 |
-
print(
|
| 24 |
|
| 25 |
@tool
|
| 26 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
|
| 1 |
+
from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,get_tool_schema,tools
|
| 2 |
import datetime
|
| 3 |
import requests
|
| 4 |
import pytz
|
| 5 |
import yaml
|
| 6 |
import gradio as gr
|
| 7 |
from tools.final_answer import FinalAnswerTool
|
| 8 |
+
|
| 9 |
from Gradio_UI import GradioUI
|
| 10 |
|
| 11 |
@tool
|
|
|
|
| 20 |
"""
|
| 21 |
return a * b
|
| 22 |
|
| 23 |
+
print(get_tool_schema(calculator))
|
| 24 |
|
| 25 |
@tool
|
| 26 |
def get_current_time_in_timezone(timezone: str) -> str:
|