Spaces:
Paused
Paused
Andrei-Iulian SĂCELEANU
commited on
Commit
•
1de0133
1
Parent(s):
1f3a9b6
fix preprocess
Browse files
app.py
CHANGED
@@ -90,7 +90,7 @@ def ssl_predict2(audio_file, model_type):
|
|
90 |
spectrogram = spectrogram.astype("float32")
|
91 |
|
92 |
inputs = processor.preprocess(
|
93 |
-
np.repeat(spectrogram[
|
94 |
image_mean=(-3.05,-3.05,-3.05),
|
95 |
image_std=(2.33,2.33,2.33),
|
96 |
return_tensors="tf"
|
|
|
90 |
spectrogram = spectrogram.astype("float32")
|
91 |
|
92 |
inputs = processor.preprocess(
|
93 |
+
np.repeat(spectrogram[np.newaxis,:,:,np.newaxis],3,-1),
|
94 |
image_mean=(-3.05,-3.05,-3.05),
|
95 |
image_std=(2.33,2.33,2.33),
|
96 |
return_tensors="tf"
|