sheikhed commited on
Commit
9d3742a
·
verified ·
1 Parent(s): 8c3be4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.6.0",
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 = 30 # Limit the number of 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)