Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
|
| 2 |
import datetime
|
| 3 |
import requests
|
| 4 |
import pytz
|
|
@@ -15,8 +15,8 @@ from smolagents import LiteLLMModel, CodeAgent
|
|
| 15 |
def convert_currency(curr1:str, curr2:str, amount:int) -> str:
|
| 16 |
""" A tool that converts one currency into another.
|
| 17 |
Args:
|
| 18 |
-
curr1: Currency 1, the initial currency that needs to be coinverted into another one (e.g. EUR
|
| 19 |
-
curr2: Currency 2, the currency the first one needs to be converted into (e.g. RUB
|
| 20 |
amount: The ammount of currency 1 that needs to be converted.
|
| 21 |
"""
|
| 22 |
try:
|
|
|
|
| 1 |
+
from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
|
| 2 |
import datetime
|
| 3 |
import requests
|
| 4 |
import pytz
|
|
|
|
| 15 |
def convert_currency(curr1:str, curr2:str, amount:int) -> str:
|
| 16 |
""" A tool that converts one currency into another.
|
| 17 |
Args:
|
| 18 |
+
curr1: Currency 1, the initial currency that needs to be coinverted into another one (e.g. EUR).
|
| 19 |
+
curr2: Currency 2, the currency the first one needs to be converted into (e.g. RUB).
|
| 20 |
amount: The ammount of currency 1 that needs to be converted.
|
| 21 |
"""
|
| 22 |
try:
|