Tlanextli commited on
Commit
debe112
·
1 Parent(s): 66461e1

Delete app_en.py

Browse files
Files changed (1) hide show
  1. app_en.py +0 -21
app_en.py DELETED
@@ -1,21 +0,0 @@
1
- import os
2
- import gradio as gr
3
- from transformers import pipeline
4
-
5
- pipeline = pipeline(task="automatic-speech-recognition", model="openai/whisper-large")
6
-
7
- def transcribe(audio_path : str) -> str:
8
- transcription = pipeline(audio_path)
9
- return transcription
10
-
11
-
12
- demo = gr.Interface(
13
- fn=transcribe,
14
- #inputs="microphone",
15
- inputs=gr.inputs.Audio(label="Upload audio file", type="filepath"),
16
- outputs="text"
17
- )
18
-
19
-
20
- if __name__ == "__main__":
21
- demo.launch()