Spaces:
Sleeping
Sleeping
initial
Browse files
app.py
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from transformers import pipeline
|
2 |
+
import gradio as gr
|
3 |
+
pipe = pipeline(model="pchopalli/whisper-small-or")
|
4 |
+
|
5 |
+
def transcribe(audio):
|
6 |
+
text = pipe(audio)["text"]
|
7 |
+
return text
|
8 |
+
|
9 |
+
demo = gr.Interface(
|
10 |
+
fn=transcribe,
|
11 |
+
inputs=gr.Audio(source="microphone", type="filepath"),
|
12 |
+
outputs="text",
|
13 |
+
title="Whisper Small Oriya",
|
14 |
+
description="Demo for Oriya speech recognition by fine-tuning a Whisper small model.",
|
15 |
+
)
|
16 |
+
|
17 |
+
demo.launch(share=True)
|