Update index.html
Browse files- index.html +0 -4
index.html
CHANGED
|
@@ -14,7 +14,6 @@ transformers_js_py
|
|
| 14 |
from transformers_js import pipeline
|
| 15 |
import gradio as gr
|
| 16 |
import numpy as np
|
| 17 |
-
import scipy.io.wavfile as wavfile
|
| 18 |
|
| 19 |
speaker_embeddings = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/speaker_embeddings.bin';
|
| 20 |
|
|
@@ -35,9 +34,6 @@ async def synthesize(text):
|
|
| 35 |
|
| 36 |
return sampling_rate, audio_data_16bit
|
| 37 |
|
| 38 |
-
wavfile.write('output.wav', sampling_rate, audio_data)
|
| 39 |
-
return "output.wav"
|
| 40 |
-
|
| 41 |
|
| 42 |
demo = gr.Interface(synthesize, "textbox", "audio")
|
| 43 |
demo.launch()
|
|
|
|
| 14 |
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 |
|
|
|
|
| 34 |
|
| 35 |
return sampling_rate, audio_data_16bit
|
| 36 |
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
demo = gr.Interface(synthesize, "textbox", "audio")
|
| 39 |
demo.launch()
|