Update app.py
Browse files
app.py
CHANGED
|
@@ -6,5 +6,11 @@ HOST = "https://1tsnakers-ollamasearchapi.hf.space"
|
|
| 6 |
if st.button("make list"):
|
| 7 |
r = requests.get(f"{HOST}/ping")
|
| 8 |
|
| 9 |
-
if r.status_code =
|
| 10 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
if st.button("make list"):
|
| 7 |
r = requests.get(f"{HOST}/ping")
|
| 8 |
|
| 9 |
+
if r.status_code != 200:
|
| 10 |
+
st.error(f"HTTP error {r.status_code}")
|
| 11 |
+
return
|
| 12 |
+
|
| 13 |
+
r = requests.get(f"{HOST}/library")
|
| 14 |
+
|
| 15 |
+
r.text
|
| 16 |
+
|