Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -220,8 +220,8 @@ def main():
|
|
220 |
st.markdown(get_table_download_link(file), unsafe_allow_html=True)
|
221 |
with col2:
|
222 |
if st.button("π", key="read_"+file): # search emoji button
|
223 |
-
|
224 |
-
|
225 |
with col3:
|
226 |
if st.button("π", key="delete_"+file):
|
227 |
os.remove(file)
|
|
|
220 |
st.markdown(get_table_download_link(file), unsafe_allow_html=True)
|
221 |
with col2:
|
222 |
if st.button("π", key="read_"+file): # search emoji button
|
223 |
+
with open(file, 'r') as f:
|
224 |
+
file_contents = f.read()
|
225 |
with col3:
|
226 |
if st.button("π", key="delete_"+file):
|
227 |
os.remove(file)
|