mzltest commited on
Commit
b023616
·
1 Parent(s): 1ef4a5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -110,8 +110,8 @@ def downloadTubeUpload(query):
110
  headers = {
111
  "Content-Disposition": f"attachment; filename={video_id}.mp4"
112
  }
113
-
114
- command = f"wget {best_audio_format["url"]} -O temp.mp4"
115
  os.system(command)
116
  command= f'curl --url https://www.lalal.ai/api/upload/ --data-binary @temp.mp4 --header "Content-Disposition: attachment; filename=temp.mp4"'
117
  output=os.getoutput(command)
 
110
  headers = {
111
  "Content-Disposition": f"attachment; filename={video_id}.mp4"
112
  }
113
+ aurl=best_audio_format["url"]
114
+ command = f"wget {aurl} -O temp.mp4"
115
  os.system(command)
116
  command= f'curl --url https://www.lalal.ai/api/upload/ --data-binary @temp.mp4 --header "Content-Disposition: attachment; filename=temp.mp4"'
117
  output=os.getoutput(command)