Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,19 +1,20 @@
|
|
| 1 |
-
import spaces
|
| 2 |
|
| 3 |
import gradio as gr
|
| 4 |
from transformers import pipeline
|
| 5 |
|
| 6 |
|
| 7 |
-
MODEL_NAME = "
|
| 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()
|