w3robotics commited on
Commit
a1bbab6
·
verified ·
1 Parent(s): ee02d06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ uploaded_file = st.file_uploader("Upload File")
20
  if uploaded_file is not None:
21
  file_details = {"FileName":uploaded_file.name,"FileType":uploaded_file.type}
22
  st.write(file_details)
23
- with open(os.path.join("tempDir",uploaded_file.name),"wb") as f:
24
  f.write(uploaded_file.getbuffer())
25
  st.success("Saved File")
26
 
 
20
  if uploaded_file is not None:
21
  file_details = {"FileName":uploaded_file.name,"FileType":uploaded_file.type}
22
  st.write(file_details)
23
+ with open(os.path.join(path ,uploaded_file.name),"wb") as f:
24
  f.write(uploaded_file.getbuffer())
25
  st.success("Saved File")
26