Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ def convert_currency(amount: float, from_currency: str, to_currency: str) -> str
|
|
50 |
from_currency: The source currency code (e.g., 'USD').
|
51 |
to_currency: The target currency code (e.g., 'INR').
|
52 |
"""
|
53 |
-
api_key = "
|
54 |
url = f"https://v6.exchangerate-api.com/v6/{api_key}/latest/{from_currency}"
|
55 |
|
56 |
try:
|
|
|
50 |
from_currency: The source currency code (e.g., 'USD').
|
51 |
to_currency: The target currency code (e.g., 'INR').
|
52 |
"""
|
53 |
+
api_key = "90171124ae953d74d1515263" # Replace with a valid API key from ExchangeRate API
|
54 |
url = f"https://v6.exchangerate-api.com/v6/{api_key}/latest/{from_currency}"
|
55 |
|
56 |
try:
|