Update app.py
Browse files
app.py
CHANGED
@@ -13,10 +13,6 @@ width=1
|
|
13 |
sen_pause=1
|
14 |
stream=True
|
15 |
|
16 |
-
def init():
|
17 |
-
key_list=pp.key_list
|
18 |
-
return(gr.update(label="Voice",choices=key_list,value="lb_LU-marylux-medium",interactive=True))
|
19 |
-
|
20 |
def load_mod(instr="lb_LU-marylux-medium"):
|
21 |
load_mes=gr.Info(f"""Loading Model...<br>{instr}""",duration=2)
|
22 |
pp.load_mod(instr=instr)
|
@@ -67,7 +63,4 @@ with gr.Blocks() as b:
|
|
67 |
cancel_btn=gr.Button("Stop")
|
68 |
out_aud=gr.Audio(streaming=True, autoplay=True)
|
69 |
|
70 |
-
|
71 |
-
b.load(init,None,names)
|
72 |
-
|
73 |
b.queue(default_concurrency_limit=20).launch(max_threads=40)
|
|
|
13 |
sen_pause=1
|
14 |
stream=True
|
15 |
|
|
|
|
|
|
|
|
|
16 |
def load_mod(instr="lb_LU-marylux-medium"):
|
17 |
load_mes=gr.Info(f"""Loading Model...<br>{instr}""",duration=2)
|
18 |
pp.load_mod(instr=instr)
|
|
|
63 |
cancel_btn=gr.Button("Stop")
|
64 |
out_aud=gr.Audio(streaming=True, autoplay=True)
|
65 |
|
|
|
|
|
|
|
66 |
b.queue(default_concurrency_limit=20).launch(max_threads=40)
|