Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def lipsync_api_call(video_url, audio_url):
|
|
26 |
"audioUrl": audio_url,
|
27 |
"videoUrl": video_url,
|
28 |
"maxCredits": 1000,
|
29 |
-
"model": "sync-1.
|
30 |
"synergize": True,
|
31 |
"pads": [0, 5, 0, 0],
|
32 |
"synergizerStrength": 1
|
@@ -37,7 +37,7 @@ def lipsync_api_call(video_url, audio_url):
|
|
37 |
|
38 |
def check_job_status(job_id):
|
39 |
headers = {"x-api-key": B_KEY}
|
40 |
-
max_attempts =
|
41 |
|
42 |
for _ in range(max_attempts):
|
43 |
response = requests.get(f"{API_URL}/{job_id}", headers=headers)
|
|
|
26 |
"audioUrl": audio_url,
|
27 |
"videoUrl": video_url,
|
28 |
"maxCredits": 1000,
|
29 |
+
"model": "sync-1.7.1",
|
30 |
"synergize": True,
|
31 |
"pads": [0, 5, 0, 0],
|
32 |
"synergizerStrength": 1
|
|
|
37 |
|
38 |
def check_job_status(job_id):
|
39 |
headers = {"x-api-key": B_KEY}
|
40 |
+
max_attempts = 3000 # Limit the number of attempts
|
41 |
|
42 |
for _ in range(max_attempts):
|
43 |
response = requests.get(f"{API_URL}/{job_id}", headers=headers)
|