Ngoufack commited on
Commit
4bd07f3
·
1 Parent(s): 2b5a39e

update medium

Browse files
Files changed (2) hide show
  1. .gitignore +0 -0
  2. 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-large-v3"
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", "translate"], label="Task", value="transcribe"),
100
  ],
101
  outputs="text",
102
- title="Whisper Large V3: Transcribe Audio",
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 🤗 Transformers to transcribe audio files"
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",