nrotem commited on
Commit
8ba8783
1 Parent(s): f452cdb
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -31,11 +31,12 @@ def combine_video_subtitle(video_file :_TemporaryFileWrapper , subtitle_file):
31
 
32
  output_file
33
  ]
34
-
 
35
  res = subprocess.run(cmd1, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
36
  print(res)
37
 
38
- return ["subtitle.ass" ,res]
39
  except subprocess.CalledProcessError as e:
40
  error_message = f"An error occurred: {e.returncode}\n{e.stderr.decode()}"
41
  print(error_message)
 
31
 
32
  output_file
33
  ]
34
+ print(os.getcwd())
35
+ file_path = os.path.join(os.getcwd() , "subtitle.ass" )
36
  res = subprocess.run(cmd1, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
37
  print(res)
38
 
39
+ return [file_path ,res]
40
  except subprocess.CalledProcessError as e:
41
  error_message = f"An error occurred: {e.returncode}\n{e.stderr.decode()}"
42
  print(error_message)