Spaces:
Runtime error
Runtime error
Commit
•
7f82106
1
Parent(s):
967a8e9
test
Browse files
app.py
CHANGED
@@ -1,15 +1,14 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
import numpy as np
|
4 |
-
import librosa
|
5 |
|
6 |
transcriber = pipeline("automatic-speech-recognition", model="filipzawadka/whisper-small-pl-2")
|
7 |
#transcriber = pipeline("automatic-speech-recognition", model="openai/whisper-small.en")
|
8 |
|
9 |
|
10 |
def transcribe(audio):
|
11 |
-
|
12 |
-
return transcriber(
|
13 |
|
14 |
|
15 |
demo = gr.Interface(
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
import numpy as np
|
|
|
4 |
|
5 |
transcriber = pipeline("automatic-speech-recognition", model="filipzawadka/whisper-small-pl-2")
|
6 |
#transcriber = pipeline("automatic-speech-recognition", model="openai/whisper-small.en")
|
7 |
|
8 |
|
9 |
def transcribe(audio):
|
10 |
+
print(audio)
|
11 |
+
return transcriber(audio)["text"]
|
12 |
|
13 |
|
14 |
demo = gr.Interface(
|