JunRecFour6 commited on
Commit
daa2a28
·
verified ·
1 Parent(s): 7def20b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -30,7 +30,9 @@ def upload():
30
  return 'No selected file', 400
31
 
32
  # Ensure upload folder exists
33
- os.makedirs(app.config['UPLOAD_FOLDER'], exist_ok=True)
 
 
34
 
35
  filename = f"{uuid.uuid4()}.mp4"
36
  filepath = os.path.join(app.config['UPLOAD_FOLDER'], filename)
 
30
  return 'No selected file', 400
31
 
32
  # Ensure upload folder exists
33
+ os.makedirs(app.config['UPLOAD_FOLDER'], exist_ok=True)
34
+
35
+ os.makedirs(app.config['RESULT_FOLDER'], exist_ok=True)
36
 
37
  filename = f"{uuid.uuid4()}.mp4"
38
  filepath = os.path.join(app.config['UPLOAD_FOLDER'], filename)