chuuhtetnaing commited on
Commit
36cdc8b
1 Parent(s): ab14d7d

change the model name, added language and remove translate task

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
@@ -128,7 +128,7 @@ yt_transcribe = gr.Interface(
128
  fn=yt_transcribe,
129
  inputs=[
130
  gr.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL"),
131
- gr.Radio(["transcribe", "translate"], label="Task", value="transcribe")
132
  ],
133
  outputs=["html", "text"],
134
  title="Whisper Large V3: Transcribe YouTube",
 
9
  import tempfile
10
  import os
11
 
12
+ MODEL_NAME = "chuuhtetnaing/whisper-large-v3-myanmar"
13
  BATCH_SIZE = 8
14
  FILE_LIMIT_MB = 1000
15
  YT_LENGTH_LIMIT_S = 3600 # limit to 1 hour YouTube files
 
128
  fn=yt_transcribe,
129
  inputs=[
130
  gr.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL"),
131
+ gr.Radio(["transcribe"], label="Task", value="transcribe")
132
  ],
133
  outputs=["html", "text"],
134
  title="Whisper Large V3: Transcribe YouTube",