Isidorophp commited on
Commit
ee533b5
·
verified ·
1 Parent(s): dfeec46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -112,12 +112,12 @@ with gr.Blocks(gr.themes.Citrus()) as demo:
112
 
113
  with gr.Tab("Write to Hermione"):
114
  with gr.Row():
 
115
  user_input = gr.TextArea(label="Your Question", scale=1, value="If there is any spell to encapsulate you as a piece of the cog, where Hermione is to everyone's favorite magical trio, it has to be...?")
116
  output_audio = gr.Audio(label="Hermione's Response", type="filepath", interactive=False, autoplay=True, scale=1, elem_classes="audio")
117
  with gr.Row():
118
  translate_btn = gr.Button("Submit", scale=1)
119
- translate_btn.click(fn=generate1, inputs=[user_input, gr.Dropdown(choices=list(Female_language_dict.keys()), value="English (UK)-Maisie- (Female)" , label="Select Voice for Hermione")], outputs=output_audio, api_name="translate")
120
-
121
 
122
  if __name__ == "__main__":
123
  demo.queue(max_size=400, api_open=False).launch()
 
112
 
113
  with gr.Tab("Write to Hermione"):
114
  with gr.Row():
115
+ translate_btn.click(fn=generate1, inputs=[user_input, gr.Dropdown(choices=list(Female_language_dict.keys()), value="English (UK)-Maisie- (Female)" , label="Select Voice for Hermione")], outputs=output_audio, api_name="translate")
116
  user_input = gr.TextArea(label="Your Question", scale=1, value="If there is any spell to encapsulate you as a piece of the cog, where Hermione is to everyone's favorite magical trio, it has to be...?")
117
  output_audio = gr.Audio(label="Hermione's Response", type="filepath", interactive=False, autoplay=True, scale=1, elem_classes="audio")
118
  with gr.Row():
119
  translate_btn = gr.Button("Submit", scale=1)
120
+
 
121
 
122
  if __name__ == "__main__":
123
  demo.queue(max_size=400, api_open=False).launch()