Spaces:
Sleeping
Sleeping
tlemagueresse
commited on
Commit
·
5201c7c
1
Parent(s):
36d5d42
add wav examples
Browse files- app.py +3 -4
- example1.wav +0 -0
- example2.wav +0 -0
app.py
CHANGED
|
@@ -29,11 +29,10 @@ def predict_audio(file):
|
|
| 29 |
return f"Prediction: {predicted_label}"
|
| 30 |
|
| 31 |
|
| 32 |
-
|
| 33 |
-
ex2 = hf_hub_download(repo_id=repo_id, filename="examples/environment.wav")
|
| 34 |
example_files = [
|
| 35 |
-
|
| 36 |
-
|
| 37 |
]
|
| 38 |
|
| 39 |
# Build Gradio Interface
|
|
|
|
| 29 |
return f"Prediction: {predicted_label}"
|
| 30 |
|
| 31 |
|
| 32 |
+
print(os.getcwd())
|
|
|
|
| 33 |
example_files = [
|
| 34 |
+
"/home/user/app/example1.wav",
|
| 35 |
+
"/home/user/app/example2.wav",
|
| 36 |
]
|
| 37 |
|
| 38 |
# Build Gradio Interface
|
example1.wav
ADDED
|
Binary file (72 kB). View file
|
|
|
example2.wav
ADDED
|
Binary file (72 kB). View file
|
|
|