wasmdashai commited on
Commit
61b5366
·
verified ·
1 Parent(s): 283d851

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -16,7 +16,8 @@ def save_file(file):
16
 
17
  # Save the file to the specified folder
18
  file_path = os.path.join(upload_folder, file_name)
19
-
 
20
 
21
  return f"File saved to: {file_path}"
22
 
 
16
 
17
  # Save the file to the specified folder
18
  file_path = os.path.join(upload_folder, file_name)
19
+ with open(file_path, "wb") as f:
20
+ f.write(file.read())
21
 
22
  return f"File saved to: {file_path}"
23