Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def get_crypto_price(crypto: str, currency: str) -> str:
|
|
42 |
response.raise_for_status()
|
43 |
data = response.json()
|
44 |
price = data.get(crypto, {}).get(currency, "N/A")
|
45 |
-
return f"The current price of {crypto} in {currency} is {
|
46 |
except requests.RequestException as e:
|
47 |
return f"Error fetching price: {e}"
|
48 |
|
|
|
42 |
response.raise_for_status()
|
43 |
data = response.json()
|
44 |
price = data.get(crypto, {}).get(currency, "N/A")
|
45 |
+
return f"The current price of {crypto} in {currency} is {prices}"
|
46 |
except requests.RequestException as e:
|
47 |
return f"Error fetching price: {e}"
|
48 |
|