jpdiazpardo commited on
Commit
c1335fa
1 Parent(s): 1b2b5c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -1,3 +1,10 @@
1
  import gradio as gr
2
 
3
- gr.Interface.load("models/openai/whisper-large").launch()
 
 
 
 
 
 
 
 
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"))