Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ from transformers.pipelines.audio_utils import ffmpeg_read
|
|
9 |
import tempfile
|
10 |
import os
|
11 |
|
12 |
-
MODEL_NAME = "
|
13 |
BATCH_SIZE = 8
|
14 |
FILE_LIMIT_MB = 1000
|
15 |
YT_LENGTH_LIMIT_S = 3600 # limit to 1 hour YouTube files
|
@@ -90,7 +90,7 @@ def yt_transcribe(yt_url, task, max_filesize=75.0):
|
|
90 |
return html_embed_str, text
|
91 |
|
92 |
|
93 |
-
demo = gr.Blocks()
|
94 |
|
95 |
mf_transcribe = gr.Interface(
|
96 |
fn=transcribe,
|
@@ -141,4 +141,6 @@ yt_transcribe = gr.Interface(
|
|
141 |
)
|
142 |
|
143 |
with demo:
|
144 |
-
gr.TabbedInterface([mf_transcribe, file_transcribe, yt_transcribe], ["Microphone", "Audio file", "YouTube"])
|
|
|
|
|
|
9 |
import tempfile
|
10 |
import os
|
11 |
|
12 |
+
MODEL_NAME = "openai/whisper-large-v3-turbo"
|
13 |
BATCH_SIZE = 8
|
14 |
FILE_LIMIT_MB = 1000
|
15 |
YT_LENGTH_LIMIT_S = 3600 # limit to 1 hour YouTube files
|
|
|
90 |
return html_embed_str, text
|
91 |
|
92 |
|
93 |
+
demo = gr.Blocks(theme=gr.themes.Ocean())
|
94 |
|
95 |
mf_transcribe = gr.Interface(
|
96 |
fn=transcribe,
|
|
|
141 |
)
|
142 |
|
143 |
with demo:
|
144 |
+
gr.TabbedInterface([mf_transcribe, file_transcribe, yt_transcribe], ["Microphone", "Audio file", "YouTube"])
|
145 |
+
|
146 |
+
demo.queue().launch(ssr_mode=False)
|