mzltest commited on
Commit
b69f2cd
·
1 Parent(s): 29f4263

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -121,6 +121,7 @@ def downloadTubeUpload(query):
121
  print(aurl)
122
  command = f'wget "{aurl}" -O temp.mp4'
123
  os.system(command)
 
124
 
125
  result = os.popen('ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 temp.mp4')
126
  duration = float(result.read().strip())
@@ -140,6 +141,10 @@ def downloadTubeUpload(query):
140
  return upload_response.get("id")
141
 
142
  def split_file(file_id):
 
 
 
 
143
  url_for_split = "https://www.lalal.ai/api/preview/"
144
  #headers={'x-csrftoken':'fdH0XaNK6YCAUnSgaNK2hEzKvTv7UcXj'}
145
 
 
121
  print(aurl)
122
  command = f'wget "{aurl}" -O temp.mp4'
123
  os.system(command)
124
+
125
 
126
  result = os.popen('ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 temp.mp4')
127
  duration = float(result.read().strip())
 
141
  return upload_response.get("id")
142
 
143
  def split_file(file_id):
144
+ command = f'rm temp.mp4'
145
+ os.system(command)
146
+ command = f'rm output.mp4'
147
+ os.system(command)
148
  url_for_split = "https://www.lalal.ai/api/preview/"
149
  #headers={'x-csrftoken':'fdH0XaNK6YCAUnSgaNK2hEzKvTv7UcXj'}
150