Spaces:
Sleeping
Sleeping
Commit
·
935c799
1
Parent(s):
4007ae1
updated ui
Browse files- Dockerfile +0 -18
- app.py +3 -3
Dockerfile
DELETED
@@ -1,18 +0,0 @@
|
|
1 |
-
FROM huggingface/gradio-gpu:4.23.0
|
2 |
-
|
3 |
-
# Install system dependencies
|
4 |
-
RUN apt-get update && \
|
5 |
-
apt-get install -y fluidsynth
|
6 |
-
|
7 |
-
# Copy the FluidR3_GM.sf2 file
|
8 |
-
RUN cp /usr/share/sounds/sf2/FluidR3_GM.sf2 ./font.sf2
|
9 |
-
|
10 |
-
# Install Python dependencies
|
11 |
-
COPY requirements.txt .
|
12 |
-
RUN pip install -r requirements.txt
|
13 |
-
|
14 |
-
# Copy the app files
|
15 |
-
COPY . .
|
16 |
-
|
17 |
-
# Run the app
|
18 |
-
CMD ["python", "app.py"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app.py
CHANGED
@@ -176,11 +176,11 @@ iface = gr.Interface(
|
|
176 |
gr.Dropdown(label="Prompt Duration (seconds)", choices=list(range(1, 11)), value=7),
|
177 |
gr.Textbox(label="MusicGen Model", value="thepatch/vanya_ai_dnb_0.1"),
|
178 |
gr.Slider(label="Number of Iterations", minimum=1, maximum=10, step=1, value=3),
|
179 |
-
gr.Slider(label="BPM", minimum=60, maximum=200, step=1, value=
|
180 |
],
|
181 |
outputs=gr.Audio(label="Generated Music"),
|
182 |
-
title="
|
183 |
-
description="
|
184 |
)
|
185 |
|
186 |
iface.launch()
|
|
|
176 |
gr.Dropdown(label="Prompt Duration (seconds)", choices=list(range(1, 11)), value=7),
|
177 |
gr.Textbox(label="MusicGen Model", value="thepatch/vanya_ai_dnb_0.1"),
|
178 |
gr.Slider(label="Number of Iterations", minimum=1, maximum=10, step=1, value=3),
|
179 |
+
gr.Slider(label="BPM", minimum=60, maximum=200, step=1, value=110)
|
180 |
],
|
181 |
outputs=gr.Audio(label="Generated Music"),
|
182 |
+
title="the slot machine",
|
183 |
+
description="this is a musical slot machine. using musiclang, we get a midi output. then, we let a musicgen model continue from semi-random sections of the midi track. the slot machine combines em all at the end into something very bizarre. pick a number for the seed between 1 and 10k, or leave it blank to unlock the full rnjesus powers. if you wanna be lame, you can control the chord progression, prompt duration, MusicGen model, number of iterations, and BPM."
|
184 |
)
|
185 |
|
186 |
iface.launch()
|