Skip to content

Commit

Permalink
Refactor Suno module: imports, method parameters, and exception handling
Browse files Browse the repository at this point in the history
- Delete files: `examples/custom_song.mp3`, `examples/intrumental.mp3`, `examples/custom_lyrics.ipynb`, `examples/song.mp3`, `examples/song.ipynb`, `examples/intrumental.ipynb`
- Update `suno.py`:
  - Import `Union` type from `typing` module
  - Modify `get_songs` and `save_songs` methods to accept additional parameters for tags, title, and is_custom
  - Add empty line between `get_songs` and `save_songs` methods
  - Modify `save_songs` method to handle empty song names by setting it to "Untitled"
  - Modify `get_auth_token` method to handle session id not obtained
  - Modify `get_songs` method to handle not ok response by raising exception
  • Loading branch information
yihong0618 committed Mar 27, 2024
1 parent 47052c2 commit 8dd7943
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 843 deletions.
200 changes: 0 additions & 200 deletions examples/custom_lyrics.ipynb

This file was deleted.

Binary file removed examples/custom_song.mp3
Binary file not shown.
Loading

0 comments on commit 8dd7943

Please sign in to comment.