Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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,
|
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,
|
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)
|