Martijn Bartelds
commited on
Commit
·
17722e5
1
Parent(s):
2b9776e
Update app
Browse files- app.py +2 -1
- requirements.txt +1 -0
app.py
CHANGED
|
@@ -5,6 +5,7 @@ from pathlib import Path
|
|
| 5 |
import os
|
| 6 |
import torch
|
| 7 |
import scipy.io.wavfile
|
|
|
|
| 8 |
from espnet2.bin.tts_inference import Text2Speech
|
| 9 |
from espnet2.utils.types import str_or_none
|
| 10 |
|
|
@@ -38,7 +39,7 @@ examples = [
|
|
| 38 |
|
| 39 |
gr.Interface(
|
| 40 |
inference,
|
| 41 |
-
[gr.inputs.Textbox(label="
|
| 42 |
[gr.outputs.Audio(type="file", label="Output"), gr.outputs.File()],
|
| 43 |
title=title,
|
| 44 |
examples=examples
|
|
|
|
| 5 |
import os
|
| 6 |
import torch
|
| 7 |
import scipy.io.wavfile
|
| 8 |
+
import numpy as np
|
| 9 |
from espnet2.bin.tts_inference import Text2Speech
|
| 10 |
from espnet2.utils.types import str_or_none
|
| 11 |
|
|
|
|
| 39 |
|
| 40 |
gr.Interface(
|
| 41 |
inference,
|
| 42 |
+
[gr.inputs.Textbox(label="Input text", lines=3), gr.inputs.Radio(choices=["Hoogelaandsters", "Oldambsters", "Westerkertaaiers"], type="value", default="Hoogelaandsters", label="Variant")],
|
| 43 |
[gr.outputs.Audio(type="file", label="Output"), gr.outputs.File()],
|
| 44 |
title=title,
|
| 45 |
examples=examples
|
requirements.txt
CHANGED
|
@@ -3,3 +3,4 @@ espnet_model_zoo
|
|
| 3 |
scipy
|
| 4 |
torch
|
| 5 |
torchaudio
|
|
|
|
|
|
| 3 |
scipy
|
| 4 |
torch
|
| 5 |
torchaudio
|
| 6 |
+
numpy
|