Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -721,9 +721,9 @@ pro=TrinerModelVITS(dir_model=dir_model,
|
|
| 721 |
token=token,
|
| 722 |
device=device
|
| 723 |
)
|
| 724 |
-
def loadd_d(
|
| 725 |
token=os.environ.get("key_")
|
| 726 |
-
model=VitsModel.from_pretrained(n_model,token=token)
|
| 727 |
return token
|
| 728 |
@spaces.GPU(duration=30)
|
| 729 |
def run_train_epoch(num):
|
|
@@ -764,13 +764,11 @@ def read_modell(n_model):
|
|
| 764 |
#model22=Vits_models_only_decoder.from_pretrained(n_model,token)#.to("cuda")
|
| 765 |
return token
|
| 766 |
with gr.Blocks() as interface:
|
| 767 |
-
with gr.Accordion("
|
| 768 |
btn_init = gr.Button("run")
|
| 769 |
-
output_i = gr.Textbox(label="namemodel")
|
| 770 |
-
output_ini = gr.Textbox(label="token")
|
| 771 |
label=gr.Label("hhh")
|
| 772 |
btn_init.click(loadd_d,[output_i],[label])
|
| 773 |
-
with gr.Accordion("
|
| 774 |
c.starrt()
|
| 775 |
with gr.Accordion("init_Starting ", open=False):
|
| 776 |
btn_init = gr.Button("init start")
|
|
|
|
| 721 |
token=token,
|
| 722 |
device=device
|
| 723 |
)
|
| 724 |
+
def loadd_d():
|
| 725 |
token=os.environ.get("key_")
|
| 726 |
+
#model=VitsModel.from_pretrained(n_model,token=token)
|
| 727 |
return token
|
| 728 |
@spaces.GPU(duration=30)
|
| 729 |
def run_train_epoch(num):
|
|
|
|
| 764 |
#model22=Vits_models_only_decoder.from_pretrained(n_model,token)#.to("cuda")
|
| 765 |
return token
|
| 766 |
with gr.Blocks() as interface:
|
| 767 |
+
with gr.Accordion("get token", open=False):
|
| 768 |
btn_init = gr.Button("run")
|
|
|
|
|
|
|
| 769 |
label=gr.Label("hhh")
|
| 770 |
btn_init.click(loadd_d,[output_i],[label])
|
| 771 |
+
with gr.Accordion("onxx ", open=False):
|
| 772 |
c.starrt()
|
| 773 |
with gr.Accordion("init_Starting ", open=False):
|
| 774 |
btn_init = gr.Button("init start")
|