Talha812 commited on
Commit
22b3cfd
·
verified ·
1 Parent(s): da617a5

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -0
app.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from pipeline import voice_pipeline
3
+
4
+ interface = gr.Interface(
5
+ fn=voice_pipeline,
6
+ inputs=gr.Audio(type="filepath"),
7
+ outputs=[
8
+ gr.Textbox(label="User Speech"),
9
+ gr.Textbox(label="AI Response"),
10
+ gr.Audio(label="AI Voice Response")
11
+ ],
12
+ title="Voice to Voice AI Assistant"
13
+ )
14
+
15
+ if __name__ == "__main__":
16
+ interface.launch()