cbg342 commited on
Commit
ae44014
1 Parent(s): df7ab32

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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 = os.path.join(thispath, 'files', uploadFile.name.split('.')[-1])
68
- with open(fname, 'wb') as f:
 
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: