nateraw commited on
Commit
61570c5
1 Parent(s): 755d17a

Synced repo using 'sync_with_huggingface' Github Action

Browse files
Files changed (2) hide show
  1. app.py +4 -3
  2. pitch_correction_utils.py +3 -0
app.py CHANGED
@@ -321,7 +321,7 @@ def main(model_id="nateraw/musicgen-songstarter-v0.2", max_batch_size=4, share=F
321
  ],
322
  outputs=[gr.Audio(label=("Input " if i == 0 else "") + f"Audio {i}") for i in range(pipeline.max_batch_size + 1)],
323
  title="🎶 Generate song ideas with musicgen-songstarter-v0.2 🎶",
324
- description="Check out the repo [here](https://huggingface.co/nateraw/musicgen-songstarter-v0.2)",
325
  examples=[
326
  ["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],
327
  ["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
329
  ["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],
330
  ["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],
331
  ["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],
332
- ]
 
333
  )
334
  interface.launch(share=share, debug=debug)
335
 
@@ -359,4 +360,4 @@ if __name__ == '__main__':
359
  # 0,
360
  # None
361
  # )
362
- # out = pipe(*example_input)
 
321
  ],
322
  outputs=[gr.Audio(label=("Input " if i == 0 else "") + f"Audio {i}") for i in range(pipeline.max_batch_size + 1)],
323
  title="🎶 Generate song ideas with musicgen-songstarter-v0.2 🎶",
324
+ 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).",
325
  examples=[
326
  ["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],
327
  ["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
  ["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],
330
  ["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],
331
  ["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],
332
+ ],
333
+ cache_examples=False
334
  )
335
  interface.launch(share=share, debug=debug)
336
 
 
360
  # 0,
361
  # None
362
  # )
363
+ # out = pipe(*example_input)
pitch_correction_utils.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  from functools import partial
2
  from pathlib import Path
3
  import argparse
 
1
+ # Taken from this AMAZING blogpost by https://github.com/JanWilczek:
2
+ # https://thewolfsound.com/how-to-auto-tune-your-voice-with-python/
3
+
4
  from functools import partial
5
  from pathlib import Path
6
  import argparse