jsbeaudry commited on
Commit
0b5e9a5
·
verified ·
1 Parent(s): b2fd69b

Update app.py

Browse files

Change modet from small to medium

Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,16 +1,16 @@
1
  from transformers import pipeline
2
  import gradio as gr
3
 
4
- pipe = pipeline(model="jsbeaudry/whisper-small-oswald") # change to "your-username/the-name-you-picked"
5
 
6
  def transcribe(audio):
7
  text = pipe(audio)["text"]
8
  return text
9
 
10
- # Remove the 'source' argument and let Gradio determine the source automatically.
11
  iface = gr.Interface(
12
  fn=transcribe,
13
- inputs=gr.Audio(type="filepath"), # Remove source="microphone"
14
  outputs="text",
15
  title="Whisper Small Creole",
16
  description="Realtime demo for Creole speech recognition using a fine-tuned Whisper small model.",
 
1
  from transformers import pipeline
2
  import gradio as gr
3
 
4
+ pipe = pipeline(model="jsbeaudry/whisper-medium-oswald")
5
 
6
  def transcribe(audio):
7
  text = pipe(audio)["text"]
8
  return text
9
 
10
+
11
  iface = gr.Interface(
12
  fn=transcribe,
13
+ inputs=gr.Audio(type="filepath"),
14
  outputs="text",
15
  title="Whisper Small Creole",
16
  description="Realtime demo for Creole speech recognition using a fine-tuned Whisper small model.",