dineshb commited on
Commit
13aba3a
Β·
1 Parent(s): 3a7a22b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -5,7 +5,7 @@ import pytube as pt
5
  from transformers import pipeline
6
  from huggingface_hub import model_info
7
 
8
- MODEL_NAME = "openai/whisper-medium" #this always needs to stay in line 8 :D sorry for the hackiness
9
  lang = "en"
10
 
11
  device = 0 if torch.cuda.is_available() else "cpu"
@@ -64,7 +64,7 @@ mf_transcribe = gr.Interface(
64
  gr.inputs.Audio(source="microphone", type="filepath", optional=True),
65
  gr.inputs.Audio(source="upload", type="filepath", optional=True),
66
  ],
67
- outputs="text"
68
  layout="horizontal",
69
  theme="huggingface",
70
  title="Whisper Demo: Transcribe Audio",
@@ -82,7 +82,7 @@ yt_transcribe = gr.Interface(
82
  theme="huggingface",
83
  title="Whisper Demo: Transcribe YouTube",
84
  description=(
85
- "Transcribe long-form YouTube videos with the click of a button! "
86
  ),
87
  allow_flagging="never",
88
  )
 
5
  from transformers import pipeline
6
  from huggingface_hub import model_info
7
 
8
+ MODEL_NAME = "openai/whisper-medium"
9
  lang = "en"
10
 
11
  device = 0 if torch.cuda.is_available() else "cpu"
 
64
  gr.inputs.Audio(source="microphone", type="filepath", optional=True),
65
  gr.inputs.Audio(source="upload", type="filepath", optional=True),
66
  ],
67
+ outputs="text",
68
  layout="horizontal",
69
  theme="huggingface",
70
  title="Whisper Demo: Transcribe Audio",
 
82
  theme="huggingface",
83
  title="Whisper Demo: Transcribe YouTube",
84
  description=(
85
+ "Transcribe long-form YouTube videos with the click of a button!"
86
  ),
87
  allow_flagging="never",
88
  )