SnowHA commited on
Commit
286eb51
·
verified ·
1 Parent(s): 488dd70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 {currency}"
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