Isidorophp commited on
Commit
00e2c85
·
verified ·
1 Parent(s): 14aa538

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -104,18 +104,18 @@ with gr.Blocks(gr.themes.Origin()) as demo:
104
  """ <center><h3> I suggest, you ask me for a Spell : </h3></center> """)
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
 
113
  with gr.Tab("Write to Hermione"):
114
- with gr.Row(variant = "panel" , scale=2):
115
  user_voice = gr.Dropdown(choices=list(Female_language_dict.keys()), value="English (UK)-Maisie- (Female)" , label="Select Voice for Hermione")
116
  user_input = gr.TextArea(label="Your Question", 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=2, elem_classes="audio")
118
- with gr.Row(variant = "panel" ,scale=2):
119
  clear_button = gr.ClearButton([user_input, output_audio], value="Clear")
120
  translate_btn = gr.Button("Submit", variant="primary")
121
  translate_btn.click(fn=generate1, inputs=[user_voice, user_input], outputs=output_audio, api_name="translate")
 
104
  """ <center><h3> I suggest, you ask me for a Spell : </h3></center> """)
105
 
106
  with gr.Tab("Talk to Hermione"):
107
+ with gr.Group():
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
 
113
  with gr.Tab("Write to Hermione"):
114
+ with gr.Group():
115
  user_voice = gr.Dropdown(choices=list(Female_language_dict.keys()), value="English (UK)-Maisie- (Female)" , label="Select Voice for Hermione")
116
  user_input = gr.TextArea(label="Your Question", 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=2, elem_classes="audio")
118
+ with gr.Group():
119
  clear_button = gr.ClearButton([user_input, output_audio], value="Clear")
120
  translate_btn = gr.Button("Submit", variant="primary")
121
  translate_btn.click(fn=generate1, inputs=[user_voice, user_input], outputs=output_audio, api_name="translate")