Spaces:
Runtime error
Runtime error
Update gradio_utils.py
Browse files- gradio_utils.py +1 -1
gradio_utils.py
CHANGED
@@ -28,7 +28,7 @@ def predict_gradio(data,
|
|
28 |
prediction = sklearn_model.predict_proba(y_uniform.reshape(1, -1))
|
29 |
result = {str(label): float(confidence) for (
|
30 |
label, confidence) in zip(classes, prediction.flatten())}
|
31 |
-
|
32 |
return result
|
33 |
|
34 |
def load_as_librosa(y: np.ndarray, sr: int, target_sr: int = 22050) -> np.ndarray:
|
|
|
28 |
prediction = sklearn_model.predict_proba(y_uniform.reshape(1, -1))
|
29 |
result = {str(label): float(confidence) for (
|
30 |
label, confidence) in zip(classes, prediction.flatten())}
|
31 |
+
print(f"{datetime.now()} predict {prediction}")
|
32 |
return result
|
33 |
|
34 |
def load_as_librosa(y: np.ndarray, sr: int, target_sr: int = 22050) -> np.ndarray:
|