Skip to content

Commit

Permalink
reorder code block to avoid two in a row
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesfrye committed Jan 17, 2025
1 parent 0920121 commit 20e1b59
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions 06_gpu_and_ml/text-to-audio/musicgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,6 @@ def _combine_segments(self, context, next_segment, overlap: int):

# We can then generate music from anywhere by running code like what we have in the `local_entrypoint` below.

# You can execute it with a command like:

# ``` shell
# modal run musicgen.py --prompt="Baroque boy band, Bachstreet Boys, basso continuo, Top 40 pop music" --duration=60
# ```


@app.local_entrypoint()
def main(
Expand All @@ -227,6 +221,12 @@ def main(
output_path.write_bytes(clip)


# You can execute it with a command like:

# ``` shell
# modal run musicgen.py --prompt="Baroque boy band, Bachstreet Boys, basso continuo, Top 40 pop music" --duration=60
# ```

# ## Hosting a web UI for the music generator

# With the Gradio library, we can create a simple web UI in Python
Expand Down

0 comments on commit 20e1b59

Please sign in to comment.