app.py
CHANGED
|
@@ -1,8 +1,9 @@
|
|
| 1 |
-
import gradio as gr
|
| 2 |
from transformers import pipeline
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
def transcribe(audio):
|
| 5 |
-
pipe = pipeline(model="marcsixtysix/whisper-base-pl")
|
| 6 |
text = pipe(audio)["text"]
|
| 7 |
return text
|
| 8 |
|
|
@@ -13,5 +14,4 @@ demo = gr.Interface(
|
|
| 13 |
title="Polish speech recognition",
|
| 14 |
description="Realtime demo for Polish speech recognition using a fine-tuned Whisper Base model.",
|
| 15 |
)
|
| 16 |
-
|
| 17 |
-
demo.launch(share=True)
|
|
|
|
|
|
|
| 1 |
from transformers import pipeline
|
| 2 |
+
import gradio as gr
|
| 3 |
+
|
| 4 |
+
pipe = pipeline(model="marcsixtysix/whisper-base-pl")
|
| 5 |
|
| 6 |
def transcribe(audio):
|
|
|
|
| 7 |
text = pipe(audio)["text"]
|
| 8 |
return text
|
| 9 |
|
|
|
|
| 14 |
title="Polish speech recognition",
|
| 15 |
description="Realtime demo for Polish speech recognition using a fine-tuned Whisper Base model.",
|
| 16 |
)
|
| 17 |
+
demo.launch(share=True)
|
|
|