shamik-lseg commited on
Commit
7ed9031
·
1 Parent(s): f678ed9

Reordered the tabs in the demo and removed unsused imports.

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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([mic_transcribe, file_transcribe], ["Transcribe Microphone", "Transcribe Audio File"])
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()