Amrrs commited on
Commit
7200fe2
1 Parent(s): a5ad715

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -9,7 +9,7 @@ from subprocess import STDOUT, check_call #os process manipulation
9
 
10
 
11
  """install libsndfile on the linux machine"""
12
- proc = subprocess.Popen('apt-get install -y libsndfssile1', shell=True, stdin=None, stdout=open(os.devnull,"wb"), stderr=STDOUT, executable="/bin/bash")
13
  proc.wait()
14
 
15
 
@@ -25,8 +25,6 @@ import gradio as gr
25
 
26
 
27
 
28
-
29
-
30
  # Constants
31
  DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
32
  MODEL = SpeechRecognitionModel("jonatasgrosman/wav2vec2-large-xlsr-53-english", device = DEVICE)
 
9
 
10
 
11
  """install libsndfile on the linux machine"""
12
+ proc = subprocess.Popen('apt-get update -y && apt-get install -y --no-install-recommends build-essential gcc libsndfile1', shell=True, stdin=None, stdout=open(os.devnull,"wb"), stderr=STDOUT, executable="/bin/bash")
13
  proc.wait()
14
 
15
 
 
25
 
26
 
27
 
 
 
28
  # Constants
29
  DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
30
  MODEL = SpeechRecognitionModel("jonatasgrosman/wav2vec2-large-xlsr-53-english", device = DEVICE)