Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ def currency_converter(amount:float, from_currency:str, to_currency:str) -> str:
|
|
| 33 |
converted = amount * rates[to_currency]
|
| 34 |
return f"Convertion of {amount} {from_currency} = {converted:.2f} {to_currency}"
|
| 35 |
except Exception as e:
|
| 36 |
-
return f"Error converting {amount} {from_currency} to {to_currency}
|
| 37 |
|
| 38 |
@tool
|
| 39 |
def website_availability(url: str) -> str:
|
|
|
|
| 33 |
converted = amount * rates[to_currency]
|
| 34 |
return f"Convertion of {amount} {from_currency} = {converted:.2f} {to_currency}"
|
| 35 |
except Exception as e:
|
| 36 |
+
return f"Error converting {amount} {from_currency} to {to_currency}"
|
| 37 |
|
| 38 |
@tool
|
| 39 |
def website_availability(url: str) -> str:
|