diff --git a/app.py b/app.py index 061627f..494b241 100644 --- a/app.py +++ b/app.py @@ -321,7 +321,7 @@ def main(model_id="nateraw/musicgen-songstarter-v0.2", max_batch_size=4, share=F ], outputs=[gr.Audio(label=("Input " if i == 0 else "") + f"Audio {i}") for i in range(pipeline.max_batch_size + 1)], title="🎶 Generate song ideas with musicgen-songstarter-v0.2 🎶", - description="Check out the repo [here](https://huggingface.co/nateraw/musicgen-songstarter-v0.2)", + description="Check out the model [here](https://huggingface.co/nateraw/musicgen-songstarter-v0.2) and the source code [here](https://github.com/nateraw/singing-songstarter).", examples=[ ["hip hop, soul, piano, chords, jazz, neo jazz, G# minor, 140 bpm", None, "closest", False, 1, 8, True, 1.0, 250, 0.0, 3.0, "./samples", "loudness", -1], ["acoustic, guitar, melody, rnb, trap, E minor, 85 bpm", None, "closest", False, 1, 8, True, 1.0, 250, 0.0, 3.0, "./samples", "loudness", -1], @@ -329,7 +329,8 @@ def main(model_id="nateraw/musicgen-songstarter-v0.2", max_batch_size=4, share=F ["drill, layered, melody, songstarters, trap, C# minor, 130 bpm", None, "closest", False, 1, 8, True, 1.0, 250, 0.0, 3.0, "./samples", "loudness", -1], ["hip hop, soul, rnb, neo soul, songstarters, B minor, 140 bpm", None, "closest", False, 1, 8, True, 1.0, 250, 0.0, 3.0, "./samples", "loudness", -1], ["music, mallets, bells, melody, dancehall, african, afropop & afrobeats", "./nate_is_singing_Gb_minor.wav", "Gb:min", False, 1, 7, True, 1.0, 250, 0.0, 4.5, "./samples", "loudness", -1], - ] + ], + cache_examples=False ) interface.launch(share=share, debug=debug) @@ -359,4 +360,4 @@ def main(model_id="nateraw/musicgen-songstarter-v0.2", max_batch_size=4, share=F # 0, # None # ) - # out = pipe(*example_input) \ No newline at end of file + # out = pipe(*example_input) diff --git a/pitch_correction_utils.py b/pitch_correction_utils.py index d74d5be..e59089a 100644 --- a/pitch_correction_utils.py +++ b/pitch_correction_utils.py @@ -1,3 +1,6 @@ +# Taken from this AMAZING blogpost by https://github.com/JanWilczek: +# https://thewolfsound.com/how-to-auto-tune-your-voice-with-python/ + from functools import partial from pathlib import Path import argparse