Blane187 commited on
Commit
01ea85b
1 Parent(s): 848e5d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -240,7 +240,7 @@ with gr.Blocks(theme=gr.themes.Base(primary_hue="blue", secondary_hue="sky"), ti
240
  with gr.Tab("Inference"):
241
  text_input = gr.Textbox(label="Input Text", placeholder="Enter text to convert to Animalese")
242
  shorten_input = gr.Checkbox(label="Shorten Words")
243
- pitch_input = gr.Slider(minimum=0.2, maximum=2.0, step=0.1, value=1.0, label="Pitch")
244
  preview_button = gr.Button("Preview!")
245
  sound_gui = gr.Audio(value=None,type="filepath",autoplay=False,visible=True)
246
  preview_button.click(fn=lambda text, shorten, pitch: preview_audio(generate_audio(text, shorten, pitch)),
@@ -254,10 +254,10 @@ with gr.Blocks(theme=gr.themes.Base(primary_hue="blue", secondary_hue="sky"), ti
254
  refresh_button = gr.Button("Refresh Models")
255
  refresh_button.click(update, outputs=[models_dropdown])
256
 
257
-
 
258
  with gr.Accordion("Settings", open=False, visible=False):
259
  pitch_algo_conf = gr.Dropdown(PITCH_ALGO_OPT,value=PITCH_ALGO_OPT[4],label="Pitch algorithm",visible=True,interactive=True,)
260
- pitch_lvl_conf = gr.Slider(label="Pitch level (lower -> 'male' while higher -> 'female')",minimum=-24,maximum=24,step=1,value=0,visible=True,interactive=True,)
261
  index_inf_conf = gr.Slider(minimum=0,maximum=1,label="Index influence -> How much accent is applied",value=0.75,)
262
  respiration_filter_conf = gr.Slider(minimum=0,maximum=7,label="Respiration median filtering",value=3,step=1,interactive=True,)
263
  envelope_ratio_conf = gr.Slider(minimum=0,maximum=1,label="Envelope ratio",value=0.25,interactive=True,)
 
240
  with gr.Tab("Inference"):
241
  text_input = gr.Textbox(label="Input Text", placeholder="Enter text to convert to Animalese")
242
  shorten_input = gr.Checkbox(label="Shorten Words")
243
+ pitch_input = gr.Slider(minimum=0.2, maximum=2.0, step=0.1, value=1.0, label="Pitch", visible=False)
244
  preview_button = gr.Button("Preview!")
245
  sound_gui = gr.Audio(value=None,type="filepath",autoplay=False,visible=True)
246
  preview_button.click(fn=lambda text, shorten, pitch: preview_audio(generate_audio(text, shorten, pitch)),
 
254
  refresh_button = gr.Button("Refresh Models")
255
  refresh_button.click(update, outputs=[models_dropdown])
256
 
257
+ pitch_lvl_conf = gr.Slider(label="Pitch level (lower -> 'male' while higher -> 'female')",minimum=-12,maximum=12,step=1,value=0,visible=True,interactive=True,)
258
+
259
  with gr.Accordion("Settings", open=False, visible=False):
260
  pitch_algo_conf = gr.Dropdown(PITCH_ALGO_OPT,value=PITCH_ALGO_OPT[4],label="Pitch algorithm",visible=True,interactive=True,)
 
261
  index_inf_conf = gr.Slider(minimum=0,maximum=1,label="Index influence -> How much accent is applied",value=0.75,)
262
  respiration_filter_conf = gr.Slider(minimum=0,maximum=7,label="Respiration median filtering",value=3,step=1,interactive=True,)
263
  envelope_ratio_conf = gr.Slider(minimum=0,maximum=1,label="Envelope ratio",value=0.25,interactive=True,)