Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,8 +62,9 @@ def fetch_active_crypto()-> dict[str, int]: #it's important to specify the retur
|
|
| 62 |
|
| 63 |
try:
|
| 64 |
response = session.get(url, params=parameters)
|
| 65 |
-
data = json.loads(response.text)
|
| 66 |
-
return top_10_items_from_json(data)
|
|
|
|
| 67 |
except (ConnectionError, Timeout, TooManyRedirects) as e:
|
| 68 |
return e
|
| 69 |
|
|
|
|
| 62 |
|
| 63 |
try:
|
| 64 |
response = session.get(url, params=parameters)
|
| 65 |
+
# data = json.loads(response.text)
|
| 66 |
+
# return top_10_items_from_json(data)
|
| 67 |
+
return top_10_items_from_json(response.text)
|
| 68 |
except (ConnectionError, Timeout, TooManyRedirects) as e:
|
| 69 |
return e
|
| 70 |
|