Downloads · 30 days
0
pacifickash/wav2lip-inference
wav2lip-inference is a machine learning model from pacifickash. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Fast lip-sync video generation using Wav2Lip on Hugging Face Inference Endpoints.
Downloads · 30 days
0
Access
Public
Updated Jul 19, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py9.7 KB · 67%
From the Hugging Face model README
Fast lip-sync video generation using Wav2Lip on Hugging Face Inference Endpoints.
{
"inputs": {
"face_image": "base64_encoded_image_data",
"audio": "base64_encoded_audio_data"
}
}
{
"video": "base64_encoded_video_data",
"status": "success",
"size": 312606
}
import requests
import base64
# Encode your files
with open("face.jpg", "rb") as f:
face_b64 = base64.b64encode(f.read()).decode()
with open("audio.wav", "rb") as f:
audio_b64 = base64.b64encode(f.read()).decode()
# Make request
response = requests.post(
"https://YOUR_ENDPOINT.endpoints.huggingface.cloud",
headers={"Authorization": "Bearer YOUR_HF_TOKEN"},
json={
"inputs": {
"face_image": face_b64,
"audio": audio_b64
}
}
)
result = response.json()
if result["status"] == "success":
# Decode and save video
video_data = base64.b64decode(result["video"])
with open("output.mp4", "wb") as f:
f.write(video_data)
This endpoint uses:
Processing time: 2-5 seconds per video on T4 GPU.