Spaces:
Sleeping
Sleeping
divakaivan
commited on
Commit
•
76fd095
1
Parent(s):
b904ee6
Update app.py
Browse files
app.py
CHANGED
@@ -4,12 +4,11 @@ import gradio as gr
|
|
4 |
pipe = pipeline(model="divakaivan/whisper-small-hi_test")
|
5 |
|
6 |
def transcribe(audio):
|
7 |
-
|
8 |
-
print(type(audio))
|
9 |
text = pipe(audio)["text"]
|
10 |
return text
|
11 |
|
12 |
-
|
13 |
fn=transcribe,
|
14 |
inputs=gr.Audio(type="filepath"),
|
15 |
outputs="text",
|
@@ -17,4 +16,4 @@ iface = gr.Interface(
|
|
17 |
description="Realtime demo for Glaswegian speech recognition using a fine-tuned Whisper small model.",
|
18 |
)
|
19 |
|
20 |
-
|
|
|
4 |
pipe = pipeline(model="divakaivan/whisper-small-hi_test")
|
5 |
|
6 |
def transcribe(audio):
|
7 |
+
|
|
|
8 |
text = pipe(audio)["text"]
|
9 |
return text
|
10 |
|
11 |
+
demo = gr.Interface(
|
12 |
fn=transcribe,
|
13 |
inputs=gr.Audio(type="filepath"),
|
14 |
outputs="text",
|
|
|
16 |
description="Realtime demo for Glaswegian speech recognition using a fine-tuned Whisper small model.",
|
17 |
)
|
18 |
|
19 |
+
demo.launch(share=True)
|