Pragnakal commited on
Commit
5f430b2
·
verified ·
1 Parent(s): 5f2f69a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
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=gr.Audio(source="microphone", type="filepath"),
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!"