Update app.py
Browse files
app.py
CHANGED
@@ -10,9 +10,19 @@ def respond(audio_input):
|
|
10 |
|
11 |
return text_response, output_path
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
gr.Interface(
|
14 |
fn=respond,
|
15 |
-
inputs=
|
16 |
outputs=["text", "audio"],
|
17 |
title="Tommy Vercetti Chatbot",
|
18 |
description="Chat with Tommy Vercetti from GTA Vice City. Get responses in both text and voice!"
|
|
|
10 |
|
11 |
return text_response, output_path
|
12 |
|
13 |
+
input_audio = gr.Audio(
|
14 |
+
sources=["microphone"],
|
15 |
+
waveform_options=gr.WaveformOptions(
|
16 |
+
waveform_color="#01C6FF",
|
17 |
+
waveform_progress_color="#0066B4",
|
18 |
+
skip_length=2,
|
19 |
+
show_controls=False,
|
20 |
+
),
|
21 |
+
)
|
22 |
+
|
23 |
gr.Interface(
|
24 |
fn=respond,
|
25 |
+
inputs=input_audio,
|
26 |
outputs=["text", "audio"],
|
27 |
title="Tommy Vercetti Chatbot",
|
28 |
description="Chat with Tommy Vercetti from GTA Vice City. Get responses in both text and voice!"
|