awacke1 commited on
Commit
5f3c7e1
Β·
1 Parent(s): e439344

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -13
app.py CHANGED
@@ -169,23 +169,12 @@ def main():
169
  with col1:
170
  st.markdown(get_table_download_link(file), unsafe_allow_html=True)
171
  with col2:
172
- if st.button("πŸ”", key=file):
173
  get_browse_file_link(file)
174
  with col3:
175
- if st.button("πŸ—‘", key=file):
176
  os.remove(file)
177
  st.experimental_rerun()
178
 
179
-
180
- #all_files = glob.glob("*.txt") + glob.glob("*.htm") + glob.glob("*.md")
181
- #for file in all_files:
182
- # col1, col2 = st.sidebar.columns([4,1]) # adjust the ratio as needed
183
- # with col1:
184
- # st.markdown(get_table_download_link(file), unsafe_allow_html=True)
185
- # with col2:
186
- # if st.button("πŸ—‘", key=file):
187
- # os.remove(file)
188
- # st.experimental_rerun()
189
-
190
  if __name__ == "__main__":
191
  main()
 
169
  with col1:
170
  st.markdown(get_table_download_link(file), unsafe_allow_html=True)
171
  with col2:
172
+ if st.button("πŸ”", key="browse_"+file):
173
  get_browse_file_link(file)
174
  with col3:
175
+ if st.button("πŸ—‘", key="delete_"+file):
176
  os.remove(file)
177
  st.experimental_rerun()
178
 
 
 
 
 
 
 
 
 
 
 
 
179
  if __name__ == "__main__":
180
  main()