jinysun commited on
Commit
b8c71bf
ยท
1 Parent(s): 269a6c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -24,9 +24,10 @@ with col1:
24
  m2 = df1["reference"].str.contains(text_search)
25
  df_search = df1[m1 | m2]
26
  with col2:
27
- if text_search:
28
  st.link_button("๐Ÿ“**DATABASE**", r"https://docs.google.com/spreadsheets/d/1YOEIg0nMTSPkAOr8wkqxQRLuUhys3-J0I-KPEpmzPLw")
29
  st.caption('๐Ÿ‘†If you want to update the database, click the button.')
 
30
  st.write(df_search)
31
  st.download_button( "โฌ‡๏ธ Download edited files as .csv", df_search.to_csv(), "df_search.csv", use_container_width=True)
32
  edited_df = st.data_editor(df1, num_rows="dynamic")
 
24
  m2 = df1["reference"].str.contains(text_search)
25
  df_search = df1[m1 | m2]
26
  with col2:
27
+
28
  st.link_button("๐Ÿ“**DATABASE**", r"https://docs.google.com/spreadsheets/d/1YOEIg0nMTSPkAOr8wkqxQRLuUhys3-J0I-KPEpmzPLw")
29
  st.caption('๐Ÿ‘†If you want to update the database, click the button.')
30
+ if text_search:
31
  st.write(df_search)
32
  st.download_button( "โฌ‡๏ธ Download edited files as .csv", df_search.to_csv(), "df_search.csv", use_container_width=True)
33
  edited_df = st.data_editor(df1, num_rows="dynamic")