Update f5-tts space
Browse files- .gitattributes +1 -0
- Dockerfile +2 -2
- README.md +1 -1
- app.py +4 -4
- examples/ref_eng.wav +3 -0
.gitattributes
CHANGED
|
@@ -35,3 +35,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
examples/ref_eng.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 37 |
examples/ref_zho.wav filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
examples/ref_eng.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 37 |
examples/ref_zho.wav filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
examples/ref_eng.wav filter=lfs diff=lfs merge=lfs -text
|
Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
# Generated at 2026-02-
|
| 2 |
#
|
| 3 |
# F5-TTS HuggingFace Space - Dockerfile
|
| 4 |
# Uses Docker SDK for more control over dependencies and environment
|
|
@@ -30,7 +30,7 @@ RUN pip install --no-cache-dir --upgrade pip
|
|
| 30 |
RUN pip install --no-cache-dir torch torchaudio --index-url https://download.pytorch.org/whl/cpu
|
| 31 |
|
| 32 |
# Install the external PyPI package (if specified) and the ttsdb wrapper from PyPI
|
| 33 |
-
RUN pip install --no-cache-dir ttsdb_f5_tts==0.1.
|
| 34 |
|
| 35 |
# Install Gradio
|
| 36 |
RUN pip install --no-cache-dir gradio>=5.15.0
|
|
|
|
| 1 |
+
# Generated at 2026-02-02T08:59:59Z from templates/space/Dockerfile.j2
|
| 2 |
#
|
| 3 |
# F5-TTS HuggingFace Space - Dockerfile
|
| 4 |
# Uses Docker SDK for more control over dependencies and environment
|
|
|
|
| 30 |
RUN pip install --no-cache-dir torch torchaudio --index-url https://download.pytorch.org/whl/cpu
|
| 31 |
|
| 32 |
# Install the external PyPI package (if specified) and the ttsdb wrapper from PyPI
|
| 33 |
+
RUN pip install --no-cache-dir ttsdb_f5_tts==0.1.4
|
| 34 |
|
| 35 |
# Install Gradio
|
| 36 |
RUN pip install --no-cache-dir gradio>=5.15.0
|
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
# Generated at 2026-02-
|
| 3 |
title: F5-TTS
|
| 4 |
emoji: 🎤
|
| 5 |
colorFrom: blue
|
|
|
|
| 1 |
---
|
| 2 |
+
# Generated at 2026-02-02T08:59:59Z from templates/space/README.md.j2
|
| 3 |
title: F5-TTS
|
| 4 |
emoji: 🎤
|
| 5 |
colorFrom: blue
|
app.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
"""F5-TTS - HuggingFace Space Demo
|
| 2 |
|
| 3 |
-
Generated at 2026-02-
|
| 4 |
|
| 5 |
A Gradio interface for F5-TTS text-to-speech synthesis.
|
| 6 |
"""
|
|
@@ -152,11 +152,11 @@ with gr.Blocks(title="F5-TTS TTS") as demo:
|
|
| 152 |
_runtime_examples = []
|
| 153 |
|
| 154 |
|
| 155 |
-
_rel = Path("examples/ref_eng.
|
| 156 |
_src = Path(__file__).parent / _rel
|
| 157 |
if _src.exists():
|
| 158 |
|
| 159 |
-
_runtime_examples.append([_src, "
|
| 160 |
|
| 161 |
|
| 162 |
|
|
@@ -165,7 +165,7 @@ with gr.Blocks(title="F5-TTS TTS") as demo:
|
|
| 165 |
_src = Path(__file__).parent / _rel
|
| 166 |
if _src.exists():
|
| 167 |
|
| 168 |
-
_runtime_examples.append([_src, "
|
| 169 |
|
| 170 |
|
| 171 |
|
|
|
|
| 1 |
"""F5-TTS - HuggingFace Space Demo
|
| 2 |
|
| 3 |
+
Generated at 2026-02-02T08:59:59Z from templates/space/app.py.j2.
|
| 4 |
|
| 5 |
A Gradio interface for F5-TTS text-to-speech synthesis.
|
| 6 |
"""
|
|
|
|
| 152 |
_runtime_examples = []
|
| 153 |
|
| 154 |
|
| 155 |
+
_rel = Path("examples/ref_eng.wav")
|
| 156 |
_src = Path(__file__).parent / _rel
|
| 157 |
if _src.exists():
|
| 158 |
|
| 159 |
+
_runtime_examples.append([_src, "This is Learning English from the News, our podcast about the news headlines.", "With tenure, Suzie'd have all the more leisure for yachting, but her publications are no good.", "eng", DEFAULT_VARIANT or AVAILABLE_VARIANTS[0]])
|
| 160 |
|
| 161 |
|
| 162 |
|
|
|
|
| 165 |
_src = Path(__file__).parent / _rel
|
| 166 |
if _src.exists():
|
| 167 |
|
| 168 |
+
_runtime_examples.append([_src, "中国企业的第一个大语言模型是文心一言,百度推出了ERNIE 5.0,千帆的4.0,所以一个由中国公司构建的人工智能的基础设施系统。", "在大學實驗室裡,教授寫了一篇滑稽論文,卻把咖啡灑在筆記上。", "zho", DEFAULT_VARIANT or AVAILABLE_VARIANTS[0]])
|
| 169 |
|
| 170 |
|
| 171 |
|
examples/ref_eng.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:878644248c220649f402cdb06a2f7c294f044d854bd06bde9f6f72f62055cdb6
|
| 3 |
+
size 454308
|