Skip to content

Commit

Permalink
format paddlespeech with pre-commit (#2331)
Browse files Browse the repository at this point in the history
  • Loading branch information
yt605155624 committed Sep 1, 2022
1 parent 5d5888a commit 795eb7b
Show file tree
Hide file tree
Showing 61 changed files with 1,052 additions and 940 deletions.
5 changes: 3 additions & 2 deletions demos/audio_searching/src/operations/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ def get_audios(path):
"""
supported_formats = [".wav", ".mp3", ".ogg", ".flac", ".m4a"]
return [
item for sublist in [[os.path.join(dir, file) for file in files]
for dir, _, files in list(os.walk(path))]
item
for sublist in [[os.path.join(dir, file) for file in files]
for dir, _, files in list(os.walk(path))]
for item in sublist if os.path.splitext(item)[1] in supported_formats
]

Expand Down
2 changes: 1 addition & 1 deletion demos/speech_web/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -401,4 +401,4 @@ curl -X 'GET' \
"code": 0,
"result":"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"message": "ok"
```
```
Loading

0 comments on commit 795eb7b

Please sign in to comment.