update medium
Browse files- .gitignore +0 -0
- app.py +4 -4
.gitignore
ADDED
File without changes
|
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 = "openai/whisper-
|
13 |
BATCH_SIZE = 8
|
14 |
FILE_LIMIT_MB = 1000
|
15 |
YT_LENGTH_LIMIT_S = 3600 # limit to 1 hour YouTube files
|
@@ -96,13 +96,13 @@ mf_transcribe = gr.Interface(
|
|
96 |
fn=transcribe,
|
97 |
inputs=[
|
98 |
gr.Audio(sources="microphone", type="filepath"),
|
99 |
-
gr.Radio(["transcribe", "
|
100 |
],
|
101 |
outputs="text",
|
102 |
-
title="
|
103 |
description=(
|
104 |
"Transcribe long-form microphone or audio inputs with the click of a button! Demo uses the"
|
105 |
-
f" checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and
|
106 |
" of arbitrary length."
|
107 |
),
|
108 |
allow_flagging="never",
|
|
|
9 |
import tempfile
|
10 |
import os
|
11 |
|
12 |
+
MODEL_NAME = "openai/whisper-medium"
|
13 |
BATCH_SIZE = 8
|
14 |
FILE_LIMIT_MB = 1000
|
15 |
YT_LENGTH_LIMIT_S = 3600 # limit to 1 hour YouTube files
|
|
|
96 |
fn=transcribe,
|
97 |
inputs=[
|
98 |
gr.Audio(sources="microphone", type="filepath"),
|
99 |
+
gr.Radio(["transcribe", "analysis"], label="Task", value="transcribe"),
|
100 |
],
|
101 |
outputs="text",
|
102 |
+
title="VerbaLens Project: Demo 1",
|
103 |
description=(
|
104 |
"Transcribe long-form microphone or audio inputs with the click of a button! Demo uses the"
|
105 |
+
f" checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}), Nemo diarization and Transformers to transcribe audio files"
|
106 |
" of arbitrary length."
|
107 |
),
|
108 |
allow_flagging="never",
|