Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -575,20 +575,6 @@ ctrain_datasets,eval_dataset,full_generation_dataset=get_data_loader(train_datas
|
|
575 |
|
576 |
|
577 |
|
578 |
-
|
579 |
-
def greet(text,id):
|
580 |
-
global GK
|
581 |
-
b=int(id)
|
582 |
-
while True:
|
583 |
-
GK+=1
|
584 |
-
texts=[text]*b
|
585 |
-
out=modelspeech(texts)
|
586 |
-
yield f"namber is {GK}"
|
587 |
-
|
588 |
-
demo = gr.Interface(fn=greet, inputs=["text","text"], outputs="text")
|
589 |
-
demo.launch()
|
590 |
-
|
591 |
-
|
592 |
raining_args.weight_kl=1
|
593 |
training_args.d_learning_rate=2e-4
|
594 |
training_args.learning_rate=2e-4
|
@@ -625,7 +611,7 @@ for i in range(10000):
|
|
625 |
# dict_state_grad_loss=sgl,
|
626 |
nk=50,
|
627 |
path_save_model=dir_model,
|
628 |
-
maf=
|
629 |
|
630 |
n_back_save_model=3000,
|
631 |
start_speeker=0,
|
@@ -633,4 +619,17 @@ for i in range(10000):
|
|
633 |
n_epoch=i*training_args.num_train_epochs,
|
634 |
|
635 |
|
636 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
575 |
|
576 |
|
577 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
578 |
raining_args.weight_kl=1
|
579 |
training_args.d_learning_rate=2e-4
|
580 |
training_args.learning_rate=2e-4
|
|
|
611 |
# dict_state_grad_loss=sgl,
|
612 |
nk=50,
|
613 |
path_save_model=dir_model,
|
614 |
+
maf=model.monotonic_align_max_path,
|
615 |
|
616 |
n_back_save_model=3000,
|
617 |
start_speeker=0,
|
|
|
619 |
n_epoch=i*training_args.num_train_epochs,
|
620 |
|
621 |
|
622 |
+
)
|
623 |
+
|
624 |
+
def greet(text,id):
|
625 |
+
global GK
|
626 |
+
b=int(id)
|
627 |
+
while True:
|
628 |
+
GK+=1
|
629 |
+
texts=[text]*b
|
630 |
+
out=modelspeech(texts)
|
631 |
+
yield f"namber is {GK}"
|
632 |
+
|
633 |
+
demo = gr.Interface(fn=greet, inputs=["text","text"], outputs="text")
|
634 |
+
demo.launch()
|
635 |
+
|