Spaces:
Running
Running
Update index.html
Browse files- index.html +1 -2
index.html
CHANGED
|
@@ -15,7 +15,6 @@ from transformers_js import pipeline
|
|
| 15 |
import gradio as gr
|
| 16 |
import numpy as np
|
| 17 |
|
| 18 |
-
speaker_embeddings = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/speaker_embeddings.bin';
|
| 19 |
|
| 20 |
synthesizer = await pipeline(
|
| 21 |
'text-to-speech',
|
|
@@ -25,7 +24,7 @@ synthesizer = await pipeline(
|
|
| 25 |
|
| 26 |
|
| 27 |
async def synthesize(text):
|
| 28 |
-
out = await synthesizer(text
|
| 29 |
audio_data_memory_view = out["audio"]
|
| 30 |
sampling_rate = out["sampling_rate"]
|
| 31 |
|
|
|
|
| 15 |
import gradio as gr
|
| 16 |
import numpy as np
|
| 17 |
|
|
|
|
| 18 |
|
| 19 |
synthesizer = await pipeline(
|
| 20 |
'text-to-speech',
|
|
|
|
| 24 |
|
| 25 |
|
| 26 |
async def synthesize(text):
|
| 27 |
+
out = await synthesizer(text);
|
| 28 |
audio_data_memory_view = out["audio"]
|
| 29 |
sampling_rate = out["sampling_rate"]
|
| 30 |
|