Update app.py
Browse filesChange modet from small to medium
app.py
CHANGED
|
@@ -1,16 +1,16 @@
|
|
| 1 |
from transformers import pipeline
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
-
pipe = pipeline(model="jsbeaudry/whisper-
|
| 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.",
|
|
|
|
| 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.",
|