clementruhm commited on
Commit
fbe7d93
1 Parent(s): 53f8a32

Change variant to panel for Columns and Rows, otherwise not visible

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -35,18 +35,18 @@ def main():
35
  visit [Balacoon website](https://balacoon.com/) for more info.
36
  """
37
  )
38
- with gr.Row():
39
  text = gr.Textbox(label="Text", placeholder="Type something here...")
40
 
41
  with gr.Row():
42
- with gr.Column():
43
  repo_files = list_repo_files(repo_id="balacoon/tts")
44
  model_files = [x for x in repo_files if x.endswith(".addon")]
45
  model_name = gr.Dropdown(
46
  label="Model",
47
  choices=model_files,
48
  )
49
- with gr.Column():
50
  speaker = gr.Dropdown(label="Speaker", choices=[])
51
 
52
  def set_model(model_name_str: str):
@@ -73,9 +73,9 @@ def main():
73
 
74
  model_name.change(set_model, inputs=model_name, outputs=speaker)
75
 
76
- with gr.Row():
77
  generate = gr.Button("Generate")
78
- with gr.Row():
79
  audio = gr.Audio()
80
 
81
  def synthesize_audio(text_str: str, speaker_str: str = ""):
 
35
  visit [Balacoon website](https://balacoon.com/) for more info.
36
  """
37
  )
38
+ with gr.Row(variant="panel"):
39
  text = gr.Textbox(label="Text", placeholder="Type something here...")
40
 
41
  with gr.Row():
42
+ with gr.Column(variant="panel"):
43
  repo_files = list_repo_files(repo_id="balacoon/tts")
44
  model_files = [x for x in repo_files if x.endswith(".addon")]
45
  model_name = gr.Dropdown(
46
  label="Model",
47
  choices=model_files,
48
  )
49
+ with gr.Column(variant="panel"):
50
  speaker = gr.Dropdown(label="Speaker", choices=[])
51
 
52
  def set_model(model_name_str: str):
 
73
 
74
  model_name.change(set_model, inputs=model_name, outputs=speaker)
75
 
76
+ with gr.Row(variant="panel"):
77
  generate = gr.Button("Generate")
78
+ with gr.Row(variant="panel"):
79
  audio = gr.Audio()
80
 
81
  def synthesize_audio(text_str: str, speaker_str: str = ""):