Update app.py
Browse files
app.py
CHANGED
@@ -105,8 +105,8 @@ with gr.Blocks(gr.themes.Origin()) as demo:
|
|
105 |
|
106 |
with gr.Tab("Talk to Hermione"):
|
107 |
with gr.Row(variant = "panel", scale=2):
|
108 |
-
user_voice = gr.Dropdown(choices=list(Female_language_dict.keys()), value="English (UK)-Maisie- (Female)" , label="Select Voice for Hermione")
|
109 |
-
us_input = gr.Audio(label="Your Voice Chat", type="filepath", interactive=True, sources="microphone", waveform_options=None)
|
110 |
us_output = gr.Audio(label="Hermione's Response", type="filepath", interactive=False, autoplay=True, elem_classes="audio")
|
111 |
gr.Interface(fn=respond, inputs=[user_voice, us_input], outputs=us_output, live=False)
|
112 |
|
|
|
105 |
|
106 |
with gr.Tab("Talk to Hermione"):
|
107 |
with gr.Row(variant = "panel", scale=2):
|
108 |
+
user_voice = gr.Dropdown(choices=list(Female_language_dict.keys()), value="English (UK)-Maisie- (Female)" , label="Select Voice for Hermione")
|
109 |
+
us_input = gr.Audio(label="Your Voice Chat", type="filepath", interactive=True, sources="microphone", waveform_options=None)
|
110 |
us_output = gr.Audio(label="Hermione's Response", type="filepath", interactive=False, autoplay=True, elem_classes="audio")
|
111 |
gr.Interface(fn=respond, inputs=[user_voice, us_input], outputs=us_output, live=False)
|
112 |
|