Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -675,16 +675,16 @@ def save_pretrained(path):
|
|
675 |
|
676 |
pro.load_model()
|
677 |
return 'save_pretrained'
|
678 |
-
def read_modell(self):
|
679 |
-
model22=Vits_models_only_decoder.from_pretrained(
|
680 |
return "yes"
|
681 |
with gr.Blocks() as interface:
|
682 |
-
with gr.Accordion("
|
683 |
-
btn_init = gr.Button("
|
684 |
-
|
685 |
-
|
686 |
label=gr.Label("hhh")
|
687 |
-
btn_init.click(read_modell,[],[label])
|
688 |
with gr.Accordion("init_Starting ", open=False):
|
689 |
btn_init = gr.Button("init start")
|
690 |
output_init = gr.Textbox(label="init")
|
|
|
675 |
|
676 |
pro.load_model()
|
677 |
return 'save_pretrained'
|
678 |
+
def read_modell(self,n_model,tokenn):
|
679 |
+
model22=Vits_models_only_decoder.from_pretrained(n_model,token=tokenn)#.to("cuda")
|
680 |
return "yes"
|
681 |
with gr.Blocks() as interface:
|
682 |
+
with gr.Accordion("read model ", open=False):
|
683 |
+
btn_init = gr.Button("run")
|
684 |
+
output_i = gr.Textbox(label="namemodel")
|
685 |
+
output_ini = gr.Textbox(label="token")
|
686 |
label=gr.Label("hhh")
|
687 |
+
btn_init.click(read_modell,[output_i,output_ini],[label])
|
688 |
with gr.Accordion("init_Starting ", open=False):
|
689 |
btn_init = gr.Button("init start")
|
690 |
output_init = gr.Textbox(label="init")
|