mbarnig commited on
Commit
9299d3b
·
verified ·
1 Parent(s): 2f75833

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -38,11 +38,11 @@ stops = [
38
 
39
  def change_speed(choice):
40
  print(f"choice: {choice}")
41
- return None
42
 
43
  def change_stop(choice):
44
  print(f"choice: {choice}")
45
- return None
46
 
47
  def init():
48
  key_list=['lb_LU-marylux-medium','lb_LU-femaleLOD-medium','lb_LU-androgynous-medium']
@@ -164,8 +164,10 @@ with gr.Blocks() as b:
164
  f7=sub_btn.click(clear_aud,None,out_aud)
165
  f8=sub_btn.click(pp.tts,[in_txt,names,length,noise,width,sen_pause],out_aud)
166
  cancel_btn.click(None,None,None,cancels=[f1,f2,f3,f4,f5,f6,f7,f8])
167
- vitess.change(change_speed, inputs=vitess)
168
- pause.change(change_stop, inputs=pause)
 
 
169
  # cancel_btn.click(None,None,None,cancels=[f1,f3,f5,f6,f7,f8])
170
  b.load(init,None,names)
171
 
 
38
 
39
  def change_speed(choice):
40
  print(f"choice: {choice}")
41
+ return "0.5"
42
 
43
  def change_stop(choice):
44
  print(f"choice: {choice}")
45
+ return "0.5"
46
 
47
  def init():
48
  key_list=['lb_LU-marylux-medium','lb_LU-femaleLOD-medium','lb_LU-androgynous-medium']
 
164
  f7=sub_btn.click(clear_aud,None,out_aud)
165
  f8=sub_btn.click(pp.tts,[in_txt,names,length,noise,width,sen_pause],out_aud)
166
  cancel_btn.click(None,None,None,cancels=[f1,f2,f3,f4,f5,f6,f7,f8])
167
+ length=vitess.change(change_speed, inputs=vitess)
168
+ print(length)
169
+ sen_pause=pause.change(change_stop, inputs=pause)
170
+ print(sen_pause)
171
  # cancel_btn.click(None,None,None,cancels=[f1,f3,f5,f6,f7,f8])
172
  b.load(init,None,names)
173