sanchit-gandhi HF staff commited on
Commit
2c9209a
1 Parent(s): 090a06a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -6,7 +6,9 @@ import soundfile
6
 
7
  SAMPLE_RATE = 16000
8
 
9
- pipe = pipeline(model="openai/whisper-small")
 
 
10
 
11
 
12
  def transcribe(Microphone, File_Upload):
@@ -38,8 +40,8 @@ iface = gr.Interface(
38
  outputs="text",
39
  layout="horizontal",
40
  theme="huggingface",
41
- title="Whisper Small",
42
- description="Demo for multilingual speech recognition using the official OpenAI [Whisper small checkpoint](https://huggingface.co/openai/whisper-small).",
43
  allow_flagging='never',
44
  )
45
 
 
6
 
7
  SAMPLE_RATE = 16000
8
 
9
+ checkpoint = "openai/whisper-small"
10
+
11
+ pipe = pipeline(model=checkpoint)
12
 
13
 
14
  def transcribe(Microphone, File_Upload):
 
40
  outputs="text",
41
  layout="horizontal",
42
  theme="huggingface",
43
+ title="Whisper Speech Recognition Demo",
44
+ description=f"Demo for speech recognition using the fine-tuned checkpoint: [{checkpoint}](https://huggingface.co/{checkpoint}).",
45
  allow_flagging='never',
46
  )
47