surely commited on
Commit
c46bf92
·
1 Parent(s): 791098f

torch audio for NepaliASR

Browse files
Files changed (2) hide show
  1. app.py +1 -3
  2. requirements.txt +2 -1
app.py CHANGED
@@ -1,11 +1,9 @@
1
  # Use a pipeline as a high-level helper
2
  from transformers import pipeline
3
-
4
- transcriber = pipeline("automatic-speech-recognition", model="sunilregmi/whisper-small-ne-NP")
5
-
6
  import gradio as gr
7
  import numpy as np
8
 
 
9
 
10
  def transcribe(stream, new_chunk):
11
  sr, y = new_chunk
 
1
  # Use a pipeline as a high-level helper
2
  from transformers import pipeline
 
 
 
3
  import gradio as gr
4
  import numpy as np
5
 
6
+ transcriber = pipeline("automatic-speech-recognition", model="sunilregmi/whisper-small-ne-NP")
7
 
8
  def transcribe(stream, new_chunk):
9
  sr, y = new_chunk
requirements.txt CHANGED
@@ -1,3 +1,4 @@
1
  transformers
2
  torch
3
- torchaudio
 
 
1
  transformers
2
  torch
3
+ torchaudio
4
+ numpy