Dhrumit1314 commited on
Commit
bc28e47
1 Parent(s): 088f6d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -63,10 +63,10 @@ def upload_video():
63
  model_name = request.form.get('modelName')
64
  print("MODEL:", model_name)
65
 
66
- backend_folder = 'backend_videos'
67
- if not os.path.exists(backend_folder):
68
- os.makedirs(backend_folder)
69
- video_path = os.path.join(backend_folder, secure_filename(video.filename))
70
  video.save(video_path)
71
 
72
  transcript = transcribe_audio(video_path)
 
63
  model_name = request.form.get('modelName')
64
  print("MODEL:", model_name)
65
 
66
+ # backend_folder = 'backend_videos'
67
+ # if not os.path.exists(backend_folder):
68
+ # os.makedirs(backend_folder)
69
+ video_path = os.path.join(os.getcwd(), secure_filename(video.filename))
70
  video.save(video_path)
71
 
72
  transcript = transcribe_audio(video_path)