Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -226,7 +226,6 @@ custom_css = """
|
|
| 226 |
max-width: 1200px !important;
|
| 227 |
margin: 0 auto !important;
|
| 228 |
}
|
| 229 |
-
|
| 230 |
#generate-btn {
|
| 231 |
font-size: 18px;
|
| 232 |
color: white;
|
|
@@ -237,11 +236,25 @@ custom_css = """
|
|
| 237 |
background: linear-gradient(90deg, hsla(268, 90%, 68%, 1) 0%, hsla(260, 72%, 70%, 1) 50%, hsla(247, 73%, 65%, 1) 100%);
|
| 238 |
transition: background 1s ease;
|
| 239 |
}
|
| 240 |
-
|
| 241 |
#generate-btn:hover {
|
| 242 |
color: white;
|
| 243 |
background: linear-gradient(90deg, hsla(268, 90%, 78%, 1) 0%, hsla(260, 72%, 80%, 1) 50%, hsla(247, 73%, 75%, 1) 100%);
|
| 244 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 245 |
"""
|
| 246 |
|
| 247 |
with gr.Blocks(
|
|
@@ -253,8 +266,8 @@ with gr.Blocks(
|
|
| 253 |
)
|
| 254 |
) as iface:
|
| 255 |
with gr.Column(elem_id="container"):
|
| 256 |
-
gr.Markdown("<h1
|
| 257 |
-
gr.Markdown("<p
|
| 258 |
|
| 259 |
bpm = gr.Slider(minimum=50, maximum=200, step=1, value=90, label="BPM")
|
| 260 |
temperature = gr.Slider(minimum=0.1, maximum=2.0, step=0.1, value=1.0, label="Temperature")
|
|
@@ -271,6 +284,6 @@ with gr.Blocks(
|
|
| 271 |
outputs=[midi_file, audio_file]
|
| 272 |
)
|
| 273 |
|
| 274 |
-
gr.Markdown("<p style='
|
| 275 |
|
| 276 |
iface.launch(share=True)
|
|
|
|
| 226 |
max-width: 1200px !important;
|
| 227 |
margin: 0 auto !important;
|
| 228 |
}
|
|
|
|
| 229 |
#generate-btn {
|
| 230 |
font-size: 18px;
|
| 231 |
color: white;
|
|
|
|
| 236 |
background: linear-gradient(90deg, hsla(268, 90%, 68%, 1) 0%, hsla(260, 72%, 70%, 1) 50%, hsla(247, 73%, 65%, 1) 100%);
|
| 237 |
transition: background 1s ease;
|
| 238 |
}
|
|
|
|
| 239 |
#generate-btn:hover {
|
| 240 |
color: white;
|
| 241 |
background: linear-gradient(90deg, hsla(268, 90%, 78%, 1) 0%, hsla(260, 72%, 80%, 1) 50%, hsla(247, 73%, 75%, 1) 100%);
|
| 242 |
}
|
| 243 |
+
|
| 244 |
+
#container .prose {
|
| 245 |
+
text-align: center !important;
|
| 246 |
+
}
|
| 247 |
+
|
| 248 |
+
#container h1 {
|
| 249 |
+
font-weight: bold;
|
| 250 |
+
font-size: 40px;
|
| 251 |
+
margin: 0px;
|
| 252 |
+
}
|
| 253 |
+
|
| 254 |
+
#container p {
|
| 255 |
+
font-size: 18px;
|
| 256 |
+
text-align: center;
|
| 257 |
+
}
|
| 258 |
"""
|
| 259 |
|
| 260 |
with gr.Blocks(
|
|
|
|
| 266 |
)
|
| 267 |
) as iface:
|
| 268 |
with gr.Column(elem_id="container"):
|
| 269 |
+
gr.Markdown("<h1>nanoMPC</h1>")
|
| 270 |
+
gr.Markdown("<p>nanoMPC is a MIDI transformer model that generates lo-fi and boom bap beats.</p>")
|
| 271 |
|
| 272 |
bpm = gr.Slider(minimum=50, maximum=200, step=1, value=90, label="BPM")
|
| 273 |
temperature = gr.Slider(minimum=0.1, maximum=2.0, step=0.1, value=1.0, label="Temperature")
|
|
|
|
| 284 |
outputs=[midi_file, audio_file]
|
| 285 |
)
|
| 286 |
|
| 287 |
+
gr.Markdown("<p style='font-size: 16px;'>Developed by <a href='https://www.patchbanks.com/' target='_blank'><strong>Patchbanks</strong></a></p>")
|
| 288 |
|
| 289 |
iface.launch(share=True)
|