File size: 821 Bytes
4af4e17
 
 
 
 
 
 
 
6c4f574
 
 
 
4af4e17
 
 
 
6c4f574
 
c68830c
 
 
4af4e17
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import pathlib
import yt_dlp
import uuid
import os
import gradio as gr
from tqdm import tqdm


def transcribe_video(d_id_key: str, elv_key: str, full_text: str):
    print("Test")
    segments="Work In Progress"
       
    return segments


demo = gr.Interface(fn=transcribe_video, inputs=[
    gr.Textbox(label="D-Id API Key",placeholder="Paste your D-Id",type='password'),
    gr.Textbox(label="Elevenlabs API Keys",placeholder="Paste Elevenlabs",type='password'),
    gr.Textbox(lines=4, label=" Please input the text you wish to generate in order to make the photo speak.", placeholder="English Text here"),
    gr.Image(label="Upload a photo of a face here, and generate a talking animation.", type="pil")
  ], outputs="text",title="Bring your images to life with the talking animation feature now!")

demo.launch()