ariankhalfani commited on
Commit
64b59e4
·
verified ·
1 Parent(s): e8892bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
  from LLMwithvoice import gradio_interface
3
 
4
- # Create the Gradio interface
5
  iface = gr.Interface(
6
  fn=gradio_interface,
7
  inputs=[
@@ -11,7 +11,7 @@ iface = gr.Interface(
11
  ],
12
  outputs=[
13
  gr.Textbox(label="Answer"),
14
- gr.Audio(label="Answer as Speech")
15
  ],
16
  title="Chat with Roberta with Voice",
17
  description="Ask questions based on a provided context using the Roberta model and hear the response via text-to-speech."
 
1
  import gradio as gr
2
  from LLMwithvoice import gradio_interface
3
 
4
+ # Define the Gradio interface
5
  iface = gr.Interface(
6
  fn=gradio_interface,
7
  inputs=[
 
11
  ],
12
  outputs=[
13
  gr.Textbox(label="Answer"),
14
+ gr.Audio(label="Answer as Speech", type="file") # Changed to file type to allow playing
15
  ],
16
  title="Chat with Roberta with Voice",
17
  description="Ask questions based on a provided context using the Roberta model and hear the response via text-to-speech."