Update app.py
Browse files
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 |
-
|
| 121 |
-
|
|
|
|
| 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/"
|