Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from LLMwithvoice import gradio_interface
|
3 |
|
4 |
-
#
|
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."
|