Spaces:
Sleeping
Sleeping
PolPC13 commited on
Commit ·
8d74186
1
Parent(s): 25d91b2
Changed input type from float tu Number
Browse files- tools/exchange_rates.py +1 -1
tools/exchange_rates.py
CHANGED
|
@@ -10,7 +10,7 @@ BASE_URL = "https://api.currencyfreaks.com/v2.0/rates/latest"
|
|
| 10 |
class ExchangeRatesTool(Tool):
|
| 11 |
name = "exchange_rates"
|
| 12 |
description = "Converts an amount from one currency to another using the latest exchange rates."
|
| 13 |
-
inputs = {'amount': {'type': '
|
| 14 |
'from_currency': {'type': 'string', 'description': 'The currency to convert from.'},
|
| 15 |
'to_currency': {'type': 'string', 'description': 'The currency to convert to.'}}
|
| 16 |
output_type = "string"
|
|
|
|
| 10 |
class ExchangeRatesTool(Tool):
|
| 11 |
name = "exchange_rates"
|
| 12 |
description = "Converts an amount from one currency to another using the latest exchange rates."
|
| 13 |
+
inputs = {'amount': {'type': 'number', 'description': 'The amount to convert.'},
|
| 14 |
'from_currency': {'type': 'string', 'description': 'The currency to convert from.'},
|
| 15 |
'to_currency': {'type': 'string', 'description': 'The currency to convert to.'}}
|
| 16 |
output_type = "string"
|