Spaces:
Runtime error
Runtime error
jpdiazpardo
commited on
Commit
•
c1335fa
1
Parent(s):
1b2b5c1
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
pipe = pipeline("automatic-speech-recognition",
|
4 |
+
model="openai/whisper-medium",
|
5 |
+
chunk_length_s=30,
|
6 |
+
device=device,
|
7 |
+
batch_size=8,
|
8 |
+
)
|
9 |
+
|
10 |
+
iface = gr.Interface.from_pipeline(pipe, inputs= gr.inputs.Audio(source="upload", type="filepath"))
|