Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,7 +45,7 @@ def convert_currency(amount:float, from_currency:str, to_currency:str) -> float:
|
|
| 45 |
rate = c.get_rate(from_currency.upper(), to_currency.upper())
|
| 46 |
# Perform the conversion
|
| 47 |
converted_amount = amount * rate
|
| 48 |
-
return f"{amount} {from_currency} is currently equal to {converted_amount} {to_currency}
|
| 49 |
|
| 50 |
except RatesNotAvailableError:
|
| 51 |
return f"Error: Conversionrate not available for {from_currency} to {to_currency}."
|
|
|
|
| 45 |
rate = c.get_rate(from_currency.upper(), to_currency.upper())
|
| 46 |
# Perform the conversion
|
| 47 |
converted_amount = amount * rate
|
| 48 |
+
return f"{amount} {from_currency} is currently equal to {converted_amount} {to_currency}"
|
| 49 |
|
| 50 |
except RatesNotAvailableError:
|
| 51 |
return f"Error: Conversionrate not available for {from_currency} to {to_currency}."
|