sigyllly commited on
Commit
a4adbda
·
verified ·
1 Parent(s): 987281f

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -41,7 +41,8 @@ def upload_files():
41
  return "No selected file", 400
42
 
43
  # Define the path to save the uploaded file
44
- bat_path = os.path.join(app.config['UPLOAD_FOLDER'], bat_file.filename)
 
45
 
46
  # Save the uploaded file
47
  bat_file.save(bat_path)
 
41
  return "No selected file", 400
42
 
43
  # Define the path to save the uploaded file
44
+ bat_filename = bat_file.filename
45
+ bat_path = os.path.join(app.config['UPLOAD_FOLDER'], bat_filename)
46
 
47
  # Save the uploaded file
48
  bat_file.save(bat_path)