Val123val commited on
Commit
e94858b
·
1 Parent(s): 5205883

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -22
app.py CHANGED
@@ -1,24 +1,4 @@
1
- pip install tansformers
2
  import gradio as gr
3
- from transformers import pipeline
4
 
5
- gr.load("models/Val123val/ru_whisper_small")
6
-
7
- pipe = pipeline(model="Val123val/ru_whisper_small")
8
-
9
- def transcribe(audio):
10
- text = pipe(audio)["text"]
11
- return text
12
-
13
- iface = gr.Interface(
14
- fn=transcribe,
15
- inputs=gr.Audio(type="filepath"),
16
- outputs="text",
17
- title="Transcriptor_ru",
18
- description="Realtime demo for russian speech recognition using a fine-tuned Whisper small model.",
19
- )
20
-
21
- iface.launch()
22
- share = True
23
-
24
- #gr.load("models/Val123val/ru_whisper_small").launch()
 
 
1
  import gradio as gr
 
2
 
3
+ gr.load("models/Val123val/ru_whisper_small").launch()
4
+ Share = True