Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
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")
|