Update gradio 5+
Browse files- .gitignore +2 -0
- app.py +3 -3
- requirements.lock.txt +132 -0
.gitignore
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.venv
|
| 2 |
+
*.pyc
|
app.py
CHANGED
|
@@ -201,7 +201,7 @@ if __name__ == "__main__":
|
|
| 201 |
placeholder="Type your sentence here (Maximum 150 words)",
|
| 202 |
value="γγγ«γ‘γγ", elem_id=f"tts-input")
|
| 203 |
with gr.Accordion(label="Phoneme Input", open=False):
|
| 204 |
-
temp_text_var = gr.
|
| 205 |
symbol_input = gr.Checkbox(value=False, label="Symbol input")
|
| 206 |
symbol_list = gr.Dataset(label="Symbol list", components=[textbox],
|
| 207 |
samples=[[x] for x in symbols],
|
|
@@ -211,7 +211,7 @@ if __name__ == "__main__":
|
|
| 211 |
[symbol_input, textbox, temp_text_var],
|
| 212 |
[textbox, temp_text_var])
|
| 213 |
symbol_list.click(None, [symbol_list, symbol_list_json], textbox,
|
| 214 |
-
|
| 215 |
(i, symbols, text) => {{
|
| 216 |
let root = document.querySelector("body > gradio-app");
|
| 217 |
if (root.shadowRoot != null)
|
|
@@ -253,4 +253,4 @@ if __name__ == "__main__":
|
|
| 253 |
outputs=[text_output, audio_output],
|
| 254 |
fn=tts_fn
|
| 255 |
)
|
| 256 |
-
app.queue(
|
|
|
|
| 201 |
placeholder="Type your sentence here (Maximum 150 words)",
|
| 202 |
value="γγγ«γ‘γγ", elem_id=f"tts-input")
|
| 203 |
with gr.Accordion(label="Phoneme Input", open=False):
|
| 204 |
+
temp_text_var = gr.State()
|
| 205 |
symbol_input = gr.Checkbox(value=False, label="Symbol input")
|
| 206 |
symbol_list = gr.Dataset(label="Symbol list", components=[textbox],
|
| 207 |
samples=[[x] for x in symbols],
|
|
|
|
| 211 |
[symbol_input, textbox, temp_text_var],
|
| 212 |
[textbox, temp_text_var])
|
| 213 |
symbol_list.click(None, [symbol_list, symbol_list_json], textbox,
|
| 214 |
+
js=f"""
|
| 215 |
(i, symbols, text) => {{
|
| 216 |
let root = document.querySelector("body > gradio-app");
|
| 217 |
if (root.shadowRoot != null)
|
|
|
|
| 253 |
outputs=[text_output, audio_output],
|
| 254 |
fn=tts_fn
|
| 255 |
)
|
| 256 |
+
app.queue(max_size=3).launch(show_api=False, share=args.share)
|
requirements.lock.txt
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
absl-py==2.3.1
|
| 2 |
+
aiofiles==24.1.0
|
| 3 |
+
annotated-types==0.7.0
|
| 4 |
+
anyio==4.10.0
|
| 5 |
+
attrs==25.3.0
|
| 6 |
+
audioread==3.0.1
|
| 7 |
+
babel==2.17.0
|
| 8 |
+
backports.functools-lru-cache==2.0.0
|
| 9 |
+
Brotli==1.1.0
|
| 10 |
+
certifi==2025.8.3
|
| 11 |
+
cffi==1.17.1
|
| 12 |
+
charset-normalizer==3.4.3
|
| 13 |
+
click==8.2.1
|
| 14 |
+
cn2an==0.5.23
|
| 15 |
+
colorama==0.4.6
|
| 16 |
+
coloredlogs==15.0.1
|
| 17 |
+
contourpy==1.3.3
|
| 18 |
+
csvw==3.5.1
|
| 19 |
+
cycler==0.12.1
|
| 20 |
+
decorator==5.2.1
|
| 21 |
+
dlinfo==2.0.0
|
| 22 |
+
eng_to_ipa==0.0.2
|
| 23 |
+
fastapi==0.116.1
|
| 24 |
+
ffmpy==0.6.1
|
| 25 |
+
filelock==3.18.0
|
| 26 |
+
flatbuffers==25.2.10
|
| 27 |
+
fonttools==4.59.0
|
| 28 |
+
fsspec==2025.7.0
|
| 29 |
+
gradio==5.42.0
|
| 30 |
+
gradio_client==1.11.1
|
| 31 |
+
groovy==0.1.2
|
| 32 |
+
grpcio==1.74.0
|
| 33 |
+
h11==0.16.0
|
| 34 |
+
httpcore==1.0.9
|
| 35 |
+
httpx==0.28.1
|
| 36 |
+
huggingface-hub==0.34.4
|
| 37 |
+
humanfriendly==10.0
|
| 38 |
+
idna==3.10
|
| 39 |
+
indic-transliteration==2.3.72
|
| 40 |
+
inflect==7.5.0
|
| 41 |
+
isodate==0.7.2
|
| 42 |
+
jamo==0.4.1
|
| 43 |
+
jieba==0.42.1
|
| 44 |
+
Jinja2==3.1.6
|
| 45 |
+
joblib==1.5.1
|
| 46 |
+
jsonschema==4.25.0
|
| 47 |
+
jsonschema-specifications==2025.4.1
|
| 48 |
+
kiwisolver==1.4.9
|
| 49 |
+
ko-pron==1.3
|
| 50 |
+
language-tags==1.2.0
|
| 51 |
+
lazy_loader==0.4
|
| 52 |
+
librosa==0.11.0
|
| 53 |
+
llvmlite==0.44.0
|
| 54 |
+
Markdown==3.8.2
|
| 55 |
+
markdown-it-py==3.0.0
|
| 56 |
+
MarkupSafe==3.0.2
|
| 57 |
+
matplotlib==3.10.5
|
| 58 |
+
mdurl==0.1.2
|
| 59 |
+
more-itertools==10.7.0
|
| 60 |
+
mpmath==1.3.0
|
| 61 |
+
msgpack==1.1.1
|
| 62 |
+
networkx==3.5
|
| 63 |
+
num-thai==0.0.5
|
| 64 |
+
numba==0.61.2
|
| 65 |
+
numpy==2.2.6
|
| 66 |
+
onnx==1.18.0
|
| 67 |
+
onnxruntime==1.22.1
|
| 68 |
+
OpenCC==1.1.9
|
| 69 |
+
orjson==3.11.1
|
| 70 |
+
packaging==25.0
|
| 71 |
+
pandas==2.3.1
|
| 72 |
+
phonemizer==3.3.0
|
| 73 |
+
pillow==11.3.0
|
| 74 |
+
platformdirs==4.3.8
|
| 75 |
+
pooch==1.8.2
|
| 76 |
+
proces==0.1.7
|
| 77 |
+
protobuf==6.31.1
|
| 78 |
+
psutil==7.0.0
|
| 79 |
+
pycparser==2.22
|
| 80 |
+
pydantic==2.11.7
|
| 81 |
+
pydantic_core==2.33.2
|
| 82 |
+
pydub==0.25.1
|
| 83 |
+
Pygments==2.19.2
|
| 84 |
+
pyopenjtalk==0.4.1
|
| 85 |
+
pyparsing==3.2.3
|
| 86 |
+
pypinyin==0.55.0
|
| 87 |
+
pyreadline3==3.5.4
|
| 88 |
+
python-dateutil==2.9.0.post0
|
| 89 |
+
python-multipart==0.0.20
|
| 90 |
+
pytz==2025.2
|
| 91 |
+
PyYAML==6.0.2
|
| 92 |
+
rdflib==7.1.4
|
| 93 |
+
referencing==0.36.2
|
| 94 |
+
regex==2025.7.34
|
| 95 |
+
requests==2.32.4
|
| 96 |
+
rfc3986==1.5.0
|
| 97 |
+
rich==14.1.0
|
| 98 |
+
roman==5.1
|
| 99 |
+
rpds-py==0.27.0
|
| 100 |
+
ruff==0.12.8
|
| 101 |
+
safehttpx==0.1.6
|
| 102 |
+
scikit-learn==1.7.1
|
| 103 |
+
scipy==1.16.1
|
| 104 |
+
segments==2.3.0
|
| 105 |
+
semantic-version==2.10.0
|
| 106 |
+
shellingham==1.5.4
|
| 107 |
+
six==1.17.0
|
| 108 |
+
sniffio==1.3.1
|
| 109 |
+
soundfile==0.13.1
|
| 110 |
+
soxr==0.5.0.post1
|
| 111 |
+
starlette==0.47.2
|
| 112 |
+
sympy==1.14.0
|
| 113 |
+
tensorboard==2.20.0
|
| 114 |
+
tensorboard-data-server==0.7.2
|
| 115 |
+
threadpoolctl==3.6.0
|
| 116 |
+
toml==0.10.2
|
| 117 |
+
tomlkit==0.13.3
|
| 118 |
+
torch==2.8.0
|
| 119 |
+
torchaudio==2.8.0
|
| 120 |
+
torchvision==0.23.0
|
| 121 |
+
tqdm==4.67.1
|
| 122 |
+
typeguard==4.4.4
|
| 123 |
+
typer==0.16.0
|
| 124 |
+
typing-inspection==0.4.1
|
| 125 |
+
typing_extensions==4.14.1
|
| 126 |
+
tzdata==2025.2
|
| 127 |
+
Unidecode==1.4.0
|
| 128 |
+
uritemplate==4.2.0
|
| 129 |
+
urllib3==2.5.0
|
| 130 |
+
uvicorn==0.35.0
|
| 131 |
+
websockets==15.0.1
|
| 132 |
+
Werkzeug==3.1.3
|