Spaces:
Runtime error
Runtime error
shamik-lseg
commited on
Commit
·
7ed9031
1
Parent(s):
f678ed9
Reordered the tabs in the demo and removed unsused imports.
Browse files
app.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
import torch
|
2 |
from transformers import pipeline
|
3 |
-
from transformers.pipelines.audio_utils import ffmpeg_read
|
4 |
import gradio as gr
|
5 |
|
6 |
MODEL_NAME = "Shamik/whisper-small-bn"
|
@@ -90,7 +89,7 @@ file_transcribe = gr.Interface(
|
|
90 |
)
|
91 |
|
92 |
with demo:
|
93 |
-
gr.TabbedInterface([
|
94 |
|
95 |
# demo.queue()
|
96 |
demo.launch()
|
|
|
1 |
import torch
|
2 |
from transformers import pipeline
|
|
|
3 |
import gradio as gr
|
4 |
|
5 |
MODEL_NAME = "Shamik/whisper-small-bn"
|
|
|
89 |
)
|
90 |
|
91 |
with demo:
|
92 |
+
gr.TabbedInterface([file_transcribe, mic_transcribe], ["Transcribe Audio File", "Transcribe Microphone"])
|
93 |
|
94 |
# demo.queue()
|
95 |
demo.launch()
|