mich123geb commited on
Commit
885a000
·
verified ·
1 Parent(s): 5358de2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -3,9 +3,9 @@ import os
3
  import subprocess
4
  import uuid
5
 
6
- # Auto-download model if missing
7
  if not os.path.exists("wav2lip_gan.pth"):
8
- os.system("wget https://huggingface.co/akhaliq/Wav2Lip/resolve/main/wav2lip_gan.pth")
9
 
10
  def generate(image, audio):
11
  uid = str(uuid.uuid4())
@@ -28,6 +28,7 @@ gr.Interface(
28
  gr.Audio(type="filepath", label="Audio (WAV only)")
29
  ],
30
  outputs=gr.Video(label="Talking Video"),
31
- live=True,
32
- enable_queue=True
 
33
  ).launch()
 
3
  import subprocess
4
  import uuid
5
 
6
+ # Public model link (no login needed)
7
  if not os.path.exists("wav2lip_gan.pth"):
8
+ os.system("wget https://www.adrianbulat.com/downloads/wav2lip/wav2lip_gan.pth")
9
 
10
  def generate(image, audio):
11
  uid = str(uuid.uuid4())
 
28
  gr.Audio(type="filepath", label="Audio (WAV only)")
29
  ],
30
  outputs=gr.Video(label="Talking Video"),
31
+ title="Wav2Lip (CPU)",
32
+ description="Generate a lip-synced talking video from an image and audio file.",
33
+ live=True
34
  ).launch()