Spaces:
Sleeping
Sleeping
tlemagueresse
commited on
Commit
·
36d5d42
1
Parent(s):
339c27f
download examples from model
Browse files- Example_2.wav +0 -0
- app.py +4 -2
- example_1.wav +0 -0
Example_2.wav
DELETED
Binary file (72 kB)
|
|
app.py
CHANGED
@@ -29,9 +29,11 @@ def predict_audio(file):
|
|
29 |
return f"Prediction: {predicted_label}"
|
30 |
|
31 |
|
|
|
|
|
32 |
example_files = [
|
33 |
-
|
34 |
-
|
35 |
]
|
36 |
|
37 |
# Build Gradio Interface
|
|
|
29 |
return f"Prediction: {predicted_label}"
|
30 |
|
31 |
|
32 |
+
ex1 = hf_hub_download(repo_id=repo_id, filename="examples/chainsaw.wav")
|
33 |
+
ex2 = hf_hub_download(repo_id=repo_id, filename="examples/environment.wav")
|
34 |
example_files = [
|
35 |
+
ex1,
|
36 |
+
ex2,
|
37 |
]
|
38 |
|
39 |
# Build Gradio Interface
|
example_1.wav
DELETED
Binary file (72 kB)
|
|