Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,6 @@ from transformers.pipelines.audio_utils import ffmpeg_read
|
|
12 |
import tempfile
|
13 |
import os
|
14 |
import time
|
15 |
-
os.environ["GRADIO_TEMP_DIR"] = "/home/yoach/spaces/tmp"
|
16 |
|
17 |
|
18 |
MODEL_NAME = "openai/whisper-large-v3"
|
@@ -182,11 +181,11 @@ mf_transcribe = gr.Interface(
|
|
182 |
],
|
183 |
outputs="text",
|
184 |
theme="huggingface",
|
185 |
-
title="
|
186 |
description=(
|
187 |
-
"
|
188 |
-
f" checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and 🤗 Transformers to transcribe audio files"
|
189 |
-
" of arbitrary length."
|
190 |
),
|
191 |
allow_flagging="never",
|
192 |
)
|
@@ -200,11 +199,11 @@ yt_transcribe = gr.Interface(
|
|
200 |
],
|
201 |
outputs=["html", "text"],
|
202 |
theme="huggingface",
|
203 |
-
title="
|
204 |
description=(
|
205 |
-
"
|
206 |
-
f" [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and 🤗 Transformers to transcribe
|
207 |
-
" arbitrary length."
|
208 |
),
|
209 |
allow_flagging="never",
|
210 |
)
|
|
|
12 |
import tempfile
|
13 |
import os
|
14 |
import time
|
|
|
15 |
|
16 |
|
17 |
MODEL_NAME = "openai/whisper-large-v3"
|
|
|
181 |
],
|
182 |
outputs="text",
|
183 |
theme="huggingface",
|
184 |
+
title="Create your own TTS dataset using your own recordings",
|
185 |
description=(
|
186 |
+
"This demo allows use to create a text-to-speech dataset from an input audio snippet and push it to hub to keep track of it."
|
187 |
+
f"Demo uses the checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and 🤗 Transformers to automatically transcribe audio files"
|
188 |
+
" of arbitrary length. It then merge chunks of audio and push it to the hub."
|
189 |
),
|
190 |
allow_flagging="never",
|
191 |
)
|
|
|
199 |
],
|
200 |
outputs=["html", "text"],
|
201 |
theme="huggingface",
|
202 |
+
title="Create your own TTS dataset using Youtube",
|
203 |
description=(
|
204 |
+
"This demo allows use to create a text-to-speech dataset from an input audio snippet and push it to hub to keep track of it."
|
205 |
+
f"Demo uses the checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and 🤗 Transformers to automatically transcribe audio files"
|
206 |
+
" of arbitrary length. It then merge chunks of audio and push it to the hub."
|
207 |
),
|
208 |
allow_flagging="never",
|
209 |
)
|