mzltest commited on
Commit
435218b
·
1 Parent(s): 26ad9fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -117,8 +117,9 @@ def downloadTubeUpload(query):
117
  command = f'wget "{aurl}" -O temp.mp4'
118
  os.system(command)
119
  command= f'curl --url https://www.lalal.ai/api/upload/ --data-binary @temp.mp4 --header "Content-Disposition: attachment; filename=temp.mp4"'
120
- output=getoutput(command)
121
- upload_response=json.loads(output)
 
122
  return upload_response.get("result", {}).get("id")
123
  def split_file(file_id):
124
  url_for_split = "https://www.lalal.ai/api/preview/"
 
117
  command = f'wget "{aurl}" -O temp.mp4'
118
  os.system(command)
119
  command= f'curl --url https://www.lalal.ai/api/upload/ --data-binary @temp.mp4 --header "Content-Disposition: attachment; filename=temp.mp4"'
120
+ moutput=getoutput(command)
121
+ print(moutput)
122
+ upload_response=json.loads(moutput)
123
  return upload_response.get("result", {}).get("id")
124
  def split_file(file_id):
125
  url_for_split = "https://www.lalal.ai/api/preview/"