Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,10 +17,10 @@ all_data_audio_paths = [
|
|
| 17 |
if item['audio']['path'].endswith(".wav") and "/data/" in item['audio']['path'].replace("\\", "/")
|
| 18 |
]
|
| 19 |
|
| 20 |
-
|
|
|
|
| 21 |
|
| 22 |
-
|
| 23 |
-
print(f"sample1.wav path: {sample1_audio_path}")
|
| 24 |
|
| 25 |
# ==============================================================================
|
| 26 |
# 数据定义 (Data Definition)
|
|
|
|
| 17 |
if item['audio']['path'].endswith(".wav") and "/data/" in item['audio']['path'].replace("\\", "/")
|
| 18 |
]
|
| 19 |
|
| 20 |
+
for p in all_data_audio_paths:
|
| 21 |
+
print(p)
|
| 22 |
|
| 23 |
+
sample1_audio_path = next((p for p in all_data_audio_paths if p.endswith("sample1.wav")), None)
|
|
|
|
| 24 |
|
| 25 |
# ==============================================================================
|
| 26 |
# 数据定义 (Data Definition)
|