Vishnu-add commited on
Commit
74f61e5
·
1 Parent(s): 0ddad88

Added cwd path to uploaded file path

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -138,7 +138,8 @@ def main():
138
  }
139
  print(os.getcwd())
140
  st.write(os.getcwd())
141
- filepath = "uploaded/"+uploaded_file.name
 
142
  with open(filepath, "wb") as temp_file:
143
  temp_file.write(uploaded_file.read())
144
 
 
138
  }
139
  print(os.getcwd())
140
  st.write(os.getcwd())
141
+ cwd = os.getcwd()
142
+ filepath = cwd+"/uploaded/"+uploaded_file.name
143
  with open(filepath, "wb") as temp_file:
144
  temp_file.write(uploaded_file.read())
145