Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -64,8 +64,9 @@ cola, colb, colc = st.columns(3)
|
|
64 |
with cola:
|
65 |
if st.button('Upload'):
|
66 |
if uploadFile:
|
67 |
-
fname =
|
68 |
-
|
|
|
69 |
f.write(uploadFile.getbuffer())
|
70 |
st.write('Success')
|
71 |
with colb:
|
|
|
64 |
with cola:
|
65 |
if st.button('Upload'):
|
66 |
if uploadFile:
|
67 |
+
fname = uploadFile.name
|
68 |
+
st.markdown(fname)
|
69 |
+
with open(os.path.join(thispath, 'files', fname), 'wb') as f:
|
70 |
f.write(uploadFile.getbuffer())
|
71 |
st.write('Success')
|
72 |
with colb:
|