Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ def is_api_up():
|
|
| 10 |
return r.status_code == 200
|
| 11 |
|
| 12 |
if st.button("make list"):
|
| 13 |
-
if
|
| 14 |
st.error(f"HTTP error {r.status_code}")
|
| 15 |
else:
|
| 16 |
r = requests.get(f"{HOST}/library")
|
|
|
|
| 10 |
return r.status_code == 200
|
| 11 |
|
| 12 |
if st.button("make list"):
|
| 13 |
+
if not is_api_up():
|
| 14 |
st.error(f"HTTP error {r.status_code}")
|
| 15 |
else:
|
| 16 |
r = requests.get(f"{HOST}/library")
|