Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -245,18 +245,12 @@ custom_css = """
|
|
| 245 |
}
|
| 246 |
"""
|
| 247 |
|
| 248 |
-
waveform_opts = gr.WaveformOptions(
|
| 249 |
-
waveform_color="#888888",
|
| 250 |
-
waveform_progress_color="#7c4dff",
|
| 251 |
-
trim_region_color="#7c4dff"
|
| 252 |
-
)
|
| 253 |
-
|
| 254 |
with gr.Blocks(
|
| 255 |
css=custom_css,
|
| 256 |
theme=gr.themes.Default(
|
| 257 |
font=[gr.themes.GoogleFont("Roboto"), "sans-serif"],
|
| 258 |
-
primary_hue="
|
| 259 |
-
secondary_hue="
|
| 260 |
)
|
| 261 |
) as iface:
|
| 262 |
with gr.Column(elem_id="container"):
|
|
@@ -268,7 +262,7 @@ with gr.Blocks(
|
|
| 268 |
top_k = gr.Slider(minimum=4, maximum=16, step=1, value=8, label="Top-k")
|
| 269 |
output_level = gr.Slider(minimum=0, maximum=3, step=0.10, value=2.0, label="Output Gain")
|
| 270 |
midi_file = gr.File(label="MIDI Output")
|
| 271 |
-
audio_file = gr.Audio(label="Audio Output", type="filepath"
|
| 272 |
generate_button = gr.Button("Generate", elem_id="generate-btn")
|
| 273 |
soundfont = gr.File(label="Optional: Upload SoundFont (preset=0, bank=0)")
|
| 274 |
|
|
@@ -278,6 +272,6 @@ with gr.Blocks(
|
|
| 278 |
outputs=[midi_file, audio_file]
|
| 279 |
)
|
| 280 |
|
| 281 |
-
gr.Markdown("<p style='text-align: center; font-size: 14px;'>Developed by <a href='https://www.patchbanks.com/' target='_blank'><strong>Patchbanks</strong></a></p>")
|
| 282 |
|
| 283 |
iface.launch(share=True)
|
|
|
|
| 245 |
}
|
| 246 |
"""
|
| 247 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 248 |
with gr.Blocks(
|
| 249 |
css=custom_css,
|
| 250 |
theme=gr.themes.Default(
|
| 251 |
font=[gr.themes.GoogleFont("Roboto"), "sans-serif"],
|
| 252 |
+
primary_hue="#7c4dff",
|
| 253 |
+
secondary_hue="#7c4dff"
|
| 254 |
)
|
| 255 |
) as iface:
|
| 256 |
with gr.Column(elem_id="container"):
|
|
|
|
| 262 |
top_k = gr.Slider(minimum=4, maximum=16, step=1, value=8, label="Top-k")
|
| 263 |
output_level = gr.Slider(minimum=0, maximum=3, step=0.10, value=2.0, label="Output Gain")
|
| 264 |
midi_file = gr.File(label="MIDI Output")
|
| 265 |
+
audio_file = gr.Audio(label="Audio Output", type="filepath")
|
| 266 |
generate_button = gr.Button("Generate", elem_id="generate-btn")
|
| 267 |
soundfont = gr.File(label="Optional: Upload SoundFont (preset=0, bank=0)")
|
| 268 |
|
|
|
|
| 272 |
outputs=[midi_file, audio_file]
|
| 273 |
)
|
| 274 |
|
| 275 |
+
gr.Markdown("<p style='text-align: center !important; font-size: 14px;'>Developed by <a href='https://www.patchbanks.com/' target='_blank'><strong>Patchbanks</strong></a></p>")
|
| 276 |
|
| 277 |
iface.launch(share=True)
|