Porjaz commited on
Commit
a06dda9
·
verified ·
1 Parent(s): 08c3820

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -31,7 +31,7 @@ def recap_sentence(string):
31
 
32
 
33
  @spaces.GPU(duration=30)
34
- def return_prediction_w2v2_mic(mic=None, progress=gr.Progress(), device=device):
35
  if mic is not None:
36
  download_path = mic.split(".")[0] + ".txt"
37
  waveform, sr = librosa.load(mic, sr=16000)
@@ -77,7 +77,7 @@ def return_prediction_w2v2_mic(mic=None, progress=gr.Progress(), device=device):
77
 
78
 
79
  @spaces.GPU(duration=60)
80
- def return_prediction_w2v2_file(file=None, progress=gr.Progress(), device=device):
81
  if file is not None:
82
  download_path = file.split(".")[0] + ".txt"
83
  waveform, sr = librosa.load(file, sr=16000)
 
31
 
32
 
33
  @spaces.GPU(duration=30)
34
+ def return_prediction_w2v2_mic(mic=None, device=device):
35
  if mic is not None:
36
  download_path = mic.split(".")[0] + ".txt"
37
  waveform, sr = librosa.load(mic, sr=16000)
 
77
 
78
 
79
  @spaces.GPU(duration=60)
80
+ def return_prediction_w2v2_file(file=None, device=device):
81
  if file is not None:
82
  download_path = file.split(".")[0] + ".txt"
83
  waveform, sr = librosa.load(file, sr=16000)