John Langley commited on
Commit
73c42bf
·
1 Parent(s): 1a4332d

streaming voice

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -88,6 +88,7 @@ async def create_demo():
88
  voice = gr.Dropdown(choices=[""] + list(voices.keys()), label="Select Voice", value="")
89
  user_msg = gr.Textbox(placeholder="Enter text here or speak into your microphone")
90
  audio_record = gr.Audio(sources=["microphone"], type="filepath", scale=4)
 
91
  submit_button = gr.Button("Submit")
92
  speech_button = gr.Button("Test Speech", visible=False)
93
  audio_playback = gr.Audio(
@@ -100,7 +101,7 @@ async def create_demo():
100
  )
101
 
102
  with gr.Column(scale=1, min_width=300):
103
- ai_response = gr.Label(show_label=True,label="LLM Sentence currently being processed")
104
  # Define chatbot component
105
  chatbot = gr.Chatbot(
106
  value=[(None, "Hi, I'm an AI training assistant. Let's get going, how should we start?")], # Initial greeting from the chatbot
 
88
  voice = gr.Dropdown(choices=[""] + list(voices.keys()), label="Select Voice", value="")
89
  user_msg = gr.Textbox(placeholder="Enter text here or speak into your microphone")
90
  audio_record = gr.Audio(sources=["microphone"], type="filepath", scale=4)
91
+ ai_response = gr.Label(show_label=True,label="LLM Sentence currently being processed")
92
  submit_button = gr.Button("Submit")
93
  speech_button = gr.Button("Test Speech", visible=False)
94
  audio_playback = gr.Audio(
 
101
  )
102
 
103
  with gr.Column(scale=1, min_width=300):
104
+
105
  # Define chatbot component
106
  chatbot = gr.Chatbot(
107
  value=[(None, "Hi, I'm an AI training assistant. Let's get going, how should we start?")], # Initial greeting from the chatbot