TonmoyKroos commited on
Commit
0b9e38f
·
verified ·
1 Parent(s): 82f374c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -1,19 +1,20 @@
1
- import spaces # MUST be first
2
 
3
  import gradio as gr
4
  from transformers import pipeline
5
 
6
 
7
- MODEL_NAME = "satarupa22/Wishper-small-asr-bn"
8
-
9
 
10
  print("Loading model...")
11
 
 
12
  pipe = pipeline(
13
  task="automatic-speech-recognition",
14
  model=MODEL_NAME,
15
  )
16
 
 
17
  print("Model loaded.")
18
 
19
 
@@ -32,6 +33,8 @@ demo = gr.Interface(
32
  inputs=gr.Audio(type="filepath"),
33
  outputs=gr.Textbox(),
34
  title="Bangla Speech Recognition",
 
35
  )
36
 
 
37
  demo.launch()
 
1
+ import spaces
2
 
3
  import gradio as gr
4
  from transformers import pipeline
5
 
6
 
7
+ MODEL_NAME = "bangla-speech-processing/BanglaASR"
 
8
 
9
  print("Loading model...")
10
 
11
+
12
  pipe = pipeline(
13
  task="automatic-speech-recognition",
14
  model=MODEL_NAME,
15
  )
16
 
17
+
18
  print("Model loaded.")
19
 
20
 
 
33
  inputs=gr.Audio(type="filepath"),
34
  outputs=gr.Textbox(),
35
  title="Bangla Speech Recognition",
36
+ description="Bangla ASR using Hugging Face ZeroGPU",
37
  )
38
 
39
+
40
  demo.launch()