Da-Rabbit-Hole commited on
Commit
ebe6cff
·
verified ·
1 Parent(s): 885adf2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -29,10 +29,10 @@ url = "https://pro-api.coingecko.com/api/v3/simple/price?&x_cg_demo_api_key=CG-4
29
 
30
  response = requests.get(url)
31
 
32
- if response.status_code == 200:
33
- data = response.json()
34
- return pd.DataFrame(data).T # Transpose for better readability
35
- else:
36
  print("Failed to retrieve data")
37
 
38
  # Specify the cryptocurrencies you want to check
 
29
 
30
  response = requests.get(url)
31
 
32
+ if response.status_code == 200:
33
+ data = response.json()
34
+ return pd.DataFrame(data).T # Transpose for better readability
35
+ else:
36
  print("Failed to retrieve data")
37
 
38
  # Specify the cryptocurrencies you want to check