Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ The Text-guided inference may or may not work. you can only do inference max 512
|
|
7 |
"""
|
8 |
import gradio as gr
|
9 |
import styletts2importable
|
10 |
-
import
|
11 |
import torch
|
12 |
import os
|
13 |
from txtsplit import txtsplit
|
@@ -114,7 +114,7 @@ def ljsynthesize(text, steps, progress=gr.Progress()):
|
|
114 |
texts = txtsplit(text)
|
115 |
audios = []
|
116 |
for t in progress.tqdm(texts):
|
117 |
-
audios.append(
|
118 |
return (24000, np.concatenate(audios))
|
119 |
|
120 |
|
|
|
7 |
"""
|
8 |
import gradio as gr
|
9 |
import styletts2importable
|
10 |
+
import ljspeechimportable
|
11 |
import torch
|
12 |
import os
|
13 |
from txtsplit import txtsplit
|
|
|
114 |
texts = txtsplit(text)
|
115 |
audios = []
|
116 |
for t in progress.tqdm(texts):
|
117 |
+
audios.append(ljspeechimportable.inference(t, noise, diffusion_steps=steps, embedding_scale=1))
|
118 |
return (24000, np.concatenate(audios))
|
119 |
|
120 |
|