neonwatty commited on
Commit
1b0177d
1 Parent(s): db14014

Update meme_search/app.py

Browse files
Files changed (1) hide show
  1. meme_search/app.py +19 -19
meme_search/app.py CHANGED
@@ -23,25 +23,25 @@ remote_css("https://fonts.googleapis.com/icon?family=Material+Icons")
23
  # icon("search")
24
  with st.container():
25
  with st.container(border=True):
26
- input_col, button_col = st.columns([6, 2])
27
-
28
- with button_col:
29
- st.empty()
30
- refresh_index_button = st.button("refresh index", type="primary")
31
- if refresh_index_button:
32
- process_start = st.warning("refreshing...")
33
- val = process()
34
- if val:
35
- process_start.empty()
36
- success = st.success("index updated!")
37
- time.sleep(2)
38
- process_start.empty()
39
- success.empty()
40
- else:
41
- process_start.empty()
42
- warning = st.warning("no refresh needed!")
43
- time.sleep(2)
44
- warning.empty()
45
 
46
  selected = input_col.text_input(label="meme search", placeholder="search for your meme", label_visibility="collapsed")
47
  if selected:
 
23
  # icon("search")
24
  with st.container():
25
  with st.container(border=True):
26
+ input_col, button_col = st.columns([6, 1])
27
+
28
+ # with button_col:
29
+ # st.empty()
30
+ # refresh_index_button = st.button("refresh index", type="primary")
31
+ # if refresh_index_button:
32
+ # process_start = st.warning("refreshing...")
33
+ # val = process()
34
+ # if val:
35
+ # process_start.empty()
36
+ # success = st.success("index updated!")
37
+ # time.sleep(2)
38
+ # process_start.empty()
39
+ # success.empty()
40
+ # else:
41
+ # process_start.empty()
42
+ # warning = st.warning("no refresh needed!")
43
+ # time.sleep(2)
44
+ # warning.empty()
45
 
46
  selected = input_col.text_input(label="meme search", placeholder="search for your meme", label_visibility="collapsed")
47
  if selected: