Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ from transformers.pipelines.audio_utils import ffmpeg_read
|
|
8 |
import tempfile
|
9 |
import os
|
10 |
|
11 |
-
MODEL_NAME = "
|
12 |
BATCH_SIZE = 8
|
13 |
FILE_LIMIT_MB = 1000
|
14 |
YT_LENGTH_LIMIT_S = 3600 # limit to 1 hour YouTube files
|
@@ -99,7 +99,7 @@ mf_transcribe = gr.Interface(
|
|
99 |
outputs="text",
|
100 |
layout="horizontal",
|
101 |
theme="huggingface",
|
102 |
-
title="Whisper
|
103 |
description=(
|
104 |
"Transcribe long-form microphone or audio inputs with the click of a button! Demo uses the OpenAI Whisper"
|
105 |
f" checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and 🤗 Transformers to transcribe audio files"
|
@@ -117,7 +117,7 @@ file_transcribe = gr.Interface(
|
|
117 |
outputs="text",
|
118 |
layout="horizontal",
|
119 |
theme="huggingface",
|
120 |
-
title="Whisper
|
121 |
description=(
|
122 |
"Transcribe long-form microphone or audio inputs with the click of a button! Demo uses the OpenAI Whisper"
|
123 |
f" checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and 🤗 Transformers to transcribe audio files"
|
@@ -135,7 +135,7 @@ yt_transcribe = gr.Interface(
|
|
135 |
outputs=["html", "text"],
|
136 |
layout="horizontal",
|
137 |
theme="huggingface",
|
138 |
-
title="Whisper
|
139 |
description=(
|
140 |
"Transcribe long-form YouTube videos with the click of a button! Demo uses the OpenAI Whisper checkpoint"
|
141 |
f" [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and 🤗 Transformers to transcribe video files of"
|
|
|
8 |
import tempfile
|
9 |
import os
|
10 |
|
11 |
+
MODEL_NAME = "dataprizma/whisper-medium-uz"
|
12 |
BATCH_SIZE = 8
|
13 |
FILE_LIMIT_MB = 1000
|
14 |
YT_LENGTH_LIMIT_S = 3600 # limit to 1 hour YouTube files
|
|
|
99 |
outputs="text",
|
100 |
layout="horizontal",
|
101 |
theme="huggingface",
|
102 |
+
title="Whisper Medium Uzbek: Transcribe Audio",
|
103 |
description=(
|
104 |
"Transcribe long-form microphone or audio inputs with the click of a button! Demo uses the OpenAI Whisper"
|
105 |
f" checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and 🤗 Transformers to transcribe audio files"
|
|
|
117 |
outputs="text",
|
118 |
layout="horizontal",
|
119 |
theme="huggingface",
|
120 |
+
title="Whisper Medium Uzbek: Transcribe Audio",
|
121 |
description=(
|
122 |
"Transcribe long-form microphone or audio inputs with the click of a button! Demo uses the OpenAI Whisper"
|
123 |
f" checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and 🤗 Transformers to transcribe audio files"
|
|
|
135 |
outputs=["html", "text"],
|
136 |
layout="horizontal",
|
137 |
theme="huggingface",
|
138 |
+
title="Whisper Medium Uzbek: Transcribe YouTube",
|
139 |
description=(
|
140 |
"Transcribe long-form YouTube videos with the click of a button! Demo uses the OpenAI Whisper checkpoint"
|
141 |
f" [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and 🤗 Transformers to transcribe video files of"
|