TIMBOVILL commited on
Commit
5de79b8
1 Parent(s): c7a980e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -16
app.py CHANGED
@@ -1669,22 +1669,8 @@ with gr.Blocks(theme=theme) as app:
1669
  info="Used for male to female and vice-versa conversions",
1670
  interactive=True,
1671
  visible=True,
1672
- )
1673
-
1674
-
1675
- animate_button.click(fn=mouth, inputs=[size, face, vc_output2, faces], outputs=[animation, preview])
1676
-
1677
- formant_preset = gr.Dropdown(
1678
- value='',
1679
- choices=get_fshift_presets(),
1680
- label="browse presets for formanting",
1681
- visible=bool(DoFormant),
1682
- )
1683
- formant_refresh_button = gr.Button(
1684
- value='\U0001f504',
1685
- visible=bool(DoFormant),
1686
- variant='primary',
1687
- )
1688
  #formant_refresh_button = ToolButton( elem_id='1')
1689
  #create_refresh_button(formant_preset, lambda: {"choices": formant_preset}, "refresh_list_shiftpresets")
1690
 
@@ -1714,6 +1700,10 @@ with gr.Blocks(theme=theme) as app:
1714
  formanting.change(fn=formant_enabled,inputs=[formanting,qfrency,tmbre,frmntbut,formant_preset,formant_refresh_button],outputs=[formanting,qfrency,tmbre,frmntbut,formant_preset,formant_refresh_button])
1715
  frmntbut.click(fn=formant_apply,inputs=[qfrency, tmbre], outputs=[qfrency, tmbre])
1716
  formant_refresh_button.click(fn=update_fshift_presets,inputs=[formant_preset, qfrency, tmbre],outputs=[formant_preset, qfrency, tmbre])
 
 
 
 
1717
 
1718
  with gr.Row():
1719
  vc_output1 = gr.Textbox("")
 
1669
  info="Used for male to female and vice-versa conversions",
1670
  interactive=True,
1671
  visible=True,
1672
+ )
1673
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1674
  #formant_refresh_button = ToolButton( elem_id='1')
1675
  #create_refresh_button(formant_preset, lambda: {"choices": formant_preset}, "refresh_list_shiftpresets")
1676
 
 
1700
  formanting.change(fn=formant_enabled,inputs=[formanting,qfrency,tmbre,frmntbut,formant_preset,formant_refresh_button],outputs=[formanting,qfrency,tmbre,frmntbut,formant_preset,formant_refresh_button])
1701
  frmntbut.click(fn=formant_apply,inputs=[qfrency, tmbre], outputs=[qfrency, tmbre])
1702
  formant_refresh_button.click(fn=update_fshift_presets,inputs=[formant_preset, qfrency, tmbre],outputs=[formant_preset, qfrency, tmbre])
1703
+
1704
+
1705
+ animate_button.click(fn=mouth, inputs=[size, face, vc_output2, faces], outputs=[animation, preview])
1706
+
1707
 
1708
  with gr.Row():
1709
  vc_output1 = gr.Textbox("")