uzdzn's picture
Rename demo_interface.py to app.py
95b34cc verified
raw
history blame
514 Bytes
import gradio as gr
from inference import InferencePipeline
i = InferencePipeline()
demo = gr.Blocks()
mic_transcribe = gr.Interface(
fn=i.voice_conversion,
inputs=gr.inputs.Audio(source="microphone", type="filepath", label="Record or upload your voice"),
outputs=gr.outputs.Audio(label="Converted Voice"),
title="Voice Conversion Demo",
description="Voice Conversion: Transform the input voice to a target voice.",
allow_flagging="never",
)
if __name__ == "__main__":
demo.launch()