Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from transformers import pipeline
|
3 |
import numpy as np
|
4 |
|
5 |
-
transcriber = pipeline("automatic-speech-recognition", model="openai/whisper-
|
6 |
|
7 |
def transcribe(stream, new_chunk):
|
8 |
sr, y = new_chunk
|
@@ -23,4 +23,4 @@ demo = gr.Interface(
|
|
23 |
live=True,
|
24 |
)
|
25 |
|
26 |
-
demo.launch()
|
|
|
2 |
from transformers import pipeline
|
3 |
import numpy as np
|
4 |
|
5 |
+
transcriber = pipeline("automatic-speech-recognition", model="openai/whisper-tiny.en")
|
6 |
|
7 |
def transcribe(stream, new_chunk):
|
8 |
sr, y = new_chunk
|
|
|
23 |
live=True,
|
24 |
)
|
25 |
|
26 |
+
demo.launch(debug=True, share=True)
|