1TSnakers commited on
Commit
e8ebe51
·
verified ·
1 Parent(s): c48c73c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
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 == 200:
10
- st.write("yay")
 
 
 
 
 
 
 
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
+