wasmdashai commited on
Commit
89a5e52
·
verified ·
1 Parent(s): 7654db0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -7,7 +7,7 @@ import torch
7
  import os
8
  from VitsModelSplit.vits_model2 import VitsModel,get_state_grad_loss
9
  import VitsModelSplit.monotonic_align as monotonic_align
10
-
11
  token=os.environ.get("key_")
12
 
13
 
@@ -675,8 +675,16 @@ def save_pretrained(path):
675
 
676
  pro.load_model()
677
  return 'save_pretrained'
678
-
 
 
679
  with gr.Blocks() as interface:
 
 
 
 
 
 
680
  with gr.Accordion("init_Starting ", open=False):
681
  btn_init = gr.Button("init start")
682
  output_init = gr.Textbox(label="init")
 
7
  import os
8
  from VitsModelSplit.vits_model2 import VitsModel,get_state_grad_loss
9
  import VitsModelSplit.monotonic_align as monotonic_align
10
+ from VitsModelSplit.vits_models_only_decoder import Vits_models_only_decoder
11
  token=os.environ.get("key_")
12
 
13
 
 
675
 
676
  pro.load_model()
677
  return 'save_pretrained'
678
+ def read_modell(self):
679
+ model22=Vits_models_only_decoder.from_pretrained("facebook/mms-tts-ara")#.to("cuda")
680
+ return "yes"
681
  with gr.Blocks() as interface:
682
+ with gr.Accordion("init_wandb ", open=False):
683
+ btn_init = gr.Button("nit_wandb")
684
+ output_initbtn_init_wandb = gr.Textbox(label="namemodel")
685
+ output_initbtn_init_wandb = gr.Textbox(label="token")
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")