Spaces:
Sleeping
Sleeping
Update main.py
Browse files
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 |
-
|
|
|
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)
|