Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -39,10 +39,6 @@ def run_the_app():
|
|
39 |
accept_multiple_files=True)
|
40 |
|
41 |
if uploaded_files:
|
42 |
-
if st.button("Clear uploaded files"):
|
43 |
-
st.empty()
|
44 |
-
st.experimental_rerun()
|
45 |
-
|
46 |
with open('converted.csv', 'w', newline='', encoding='utf-8') as wf:
|
47 |
fieldnames = ['# pano poses v1.0: ID',
|
48 |
'filename',
|
@@ -83,9 +79,9 @@ def run_the_app():
|
|
83 |
writer.writerow(rec)
|
84 |
|
85 |
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
|
90 |
if __name__ == "__main__":
|
91 |
main()
|
|
|
39 |
accept_multiple_files=True)
|
40 |
|
41 |
if uploaded_files:
|
|
|
|
|
|
|
|
|
42 |
with open('converted.csv', 'w', newline='', encoding='utf-8') as wf:
|
43 |
fieldnames = ['# pano poses v1.0: ID',
|
44 |
'filename',
|
|
|
79 |
writer.writerow(rec)
|
80 |
|
81 |
|
82 |
+
with open('converted.csv', 'rb') as f:
|
83 |
+
st.write('Conversion completed.')
|
84 |
+
st.download_button("Download the converted files", f, file_name = "converted.csv")
|
85 |
|
86 |
if __name__ == "__main__":
|
87 |
main()
|