jiuuee commited on
Commit
ea225b5
·
verified ·
1 Parent(s): 45b7033

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from transformers import pipeline
3
+ pipe = pipeline(task="automatic-speech-recognition",
4
+ model="openai/whisper-tiny")
5
+ gr.Interface.from_pipeline(pipe,
6
+ title="Automatic Speech Recognition (ASR)",
7
+ description="Using pipeline with OpenAI Whisper",
8
+ examples=['assets/ljspeech.wav',],
9
+ ).launch(inbrowser=True)