Talha812's picture
Create app.py
22b3cfd verified
raw
history blame contribute delete
384 Bytes
import gradio as gr
from pipeline import voice_pipeline
interface = gr.Interface(
fn=voice_pipeline,
inputs=gr.Audio(type="filepath"),
outputs=[
gr.Textbox(label="User Speech"),
gr.Textbox(label="AI Response"),
gr.Audio(label="AI Voice Response")
],
title="Voice to Voice AI Assistant"
)
if __name__ == "__main__":
interface.launch()