Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -181,10 +181,8 @@ def ui_full(launch_kwargs):
|
|
181 |
with gr.Blocks() as interface:
|
182 |
gr.Markdown(
|
183 |
"""
|
184 |
-
#
|
185 |
-
This is
|
186 |
-
a simple and controllable model for music generation
|
187 |
-
presented at: ["Simple and Controllable Music Generation"](https://huggingface.co/papers/2306.05284)
|
188 |
"""
|
189 |
)
|
190 |
with gr.Row():
|
@@ -204,14 +202,14 @@ def ui_full(launch_kwargs):
|
|
204 |
model = gr.Radio(["melody", "medium", "small", "large"],
|
205 |
label="Model", value="melody", interactive=True)
|
206 |
with gr.Row():
|
207 |
-
duration = gr.Slider(minimum=1, maximum=
|
208 |
with gr.Row():
|
209 |
-
topk = gr.Number(label="
|
210 |
-
topp = gr.Number(label="
|
211 |
-
temperature = gr.Number(label="
|
212 |
-
cfg_coef = gr.Number(label="
|
213 |
with gr.Column():
|
214 |
-
output = gr.Video(label="
|
215 |
submit.click(predict_full,
|
216 |
inputs=[model, text, melody, duration, topk, topp, temperature, cfg_coef],
|
217 |
outputs=[output])
|
|
|
181 |
with gr.Blocks() as interface:
|
182 |
gr.Markdown(
|
183 |
"""
|
184 |
+
# Cyberpunk DJ
|
185 |
+
This is a cyberpunk DJ app used to make FUTURISTIC 31st CENTURY AI HIP HOP BEATS
|
|
|
|
|
186 |
"""
|
187 |
)
|
188 |
with gr.Row():
|
|
|
202 |
model = gr.Radio(["melody", "medium", "small", "large"],
|
203 |
label="Model", value="melody", interactive=True)
|
204 |
with gr.Row():
|
205 |
+
duration = gr.Slider(minimum=1, maximum=30, value=30, label="Duration", interactive=True)
|
206 |
with gr.Row():
|
207 |
+
topk = gr.Number(label="Randomness Value", value=250, interactive=True)
|
208 |
+
topp = gr.Number(label="Beat Tweaking Value", value=0, interactive=True)
|
209 |
+
temperature = gr.Number(label="Dubstep Glitch Value", value=1.0, interactive=True)
|
210 |
+
cfg_coef = gr.Number(label="Beatnik Trip Hop Value", value=3.0, interactive=True)
|
211 |
with gr.Column():
|
212 |
+
output = gr.Video(label="Finished Cypberpunk DJ Masterpiece Audio File")
|
213 |
submit.click(predict_full,
|
214 |
inputs=[model, text, melody, duration, topk, topp, temperature, cfg_coef],
|
215 |
outputs=[output])
|