Update app.py
Browse files
app.py
CHANGED
@@ -185,7 +185,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
185 |
|
186 |
with gr.Row():
|
187 |
with gr.Column(scale=1):
|
188 |
-
input_audio = gr.Audio(label="
|
189 |
select = gr.Dropdown([
|
190 |
'Llama 3 8B Service',
|
191 |
'Mixtral 8x7B',
|
@@ -212,8 +212,8 @@ with gr.Blocks(css="style.css") as demo:
|
|
212 |
clear_button = gr.Button("Clear Conversation History")
|
213 |
|
214 |
with gr.Column(scale=1):
|
215 |
-
output_audio = gr.Audio(label="AI Response", type="filepath", interactive=False, autoplay=True)
|
216 |
-
translated_audio = gr.Audio(label="Translated
|
217 |
status_message = gr.Textbox(label="Status", interactive=False)
|
218 |
|
219 |
input_audio.change(
|
|
|
185 |
|
186 |
with gr.Row():
|
187 |
with gr.Column(scale=1):
|
188 |
+
input_audio = gr.Audio(label="Click record and start speaking", sources=["microphone"], type="filepath")
|
189 |
select = gr.Dropdown([
|
190 |
'Llama 3 8B Service',
|
191 |
'Mixtral 8x7B',
|
|
|
212 |
clear_button = gr.Button("Clear Conversation History")
|
213 |
|
214 |
with gr.Column(scale=1):
|
215 |
+
output_audio = gr.Audio(label="AI Voice Assistant's Response", type="filepath", interactive=False, autoplay=True)
|
216 |
+
translated_audio = gr.Audio(label="Translated Speech", type="filepath", interactive=False, autoplay=True)
|
217 |
status_message = gr.Textbox(label="Status", interactive=False)
|
218 |
|
219 |
input_audio.change(
|