Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -218,14 +218,10 @@ def Generate_Accompaniment(input_midi,
|
|
218 |
print('Requested settings:')
|
219 |
print('=' * 70)
|
220 |
print('Input MIDI file name:', fn)
|
221 |
-
print('
|
222 |
-
print('
|
223 |
-
print('
|
224 |
-
|
225 |
-
print('Model durations sampling top value:', input_model_dur_top_k)
|
226 |
-
print('Model durations temperature:', input_model_dur_temperature)
|
227 |
-
print('Model velocities temperature:', input_model_vel_temperature)
|
228 |
-
|
229 |
print('=' * 70)
|
230 |
|
231 |
#==================================================================
|
@@ -373,7 +369,7 @@ with gr.Blocks() as demo:
|
|
373 |
|
374 |
gr.Markdown("## Generation options")
|
375 |
|
376 |
-
generation_type = gr.Radio(["Guided", "Freestyle"], value="Guided",
|
377 |
melody_patch = gr.Slider(-1, 127, value=-1, step=1, label="Source melody MIDI patch")
|
378 |
model_temperature = gr.Slider(0.1, 1, value=0.9, step=0.01, label="Model temperature")
|
379 |
|
|
|
218 |
print('Requested settings:')
|
219 |
print('=' * 70)
|
220 |
print('Input MIDI file name:', fn)
|
221 |
+
print('Generation type:', generation_type)
|
222 |
+
print('Source melody patch:', melody_patch)
|
223 |
+
print('Model temperature:', model_temperature)
|
224 |
+
|
|
|
|
|
|
|
|
|
225 |
print('=' * 70)
|
226 |
|
227 |
#==================================================================
|
|
|
369 |
|
370 |
gr.Markdown("## Generation options")
|
371 |
|
372 |
+
generation_type = gr.Radio(["Guided", "Freestyle"], value="Guided", label="Generation type")
|
373 |
melody_patch = gr.Slider(-1, 127, value=-1, step=1, label="Source melody MIDI patch")
|
374 |
model_temperature = gr.Slider(0.1, 1, value=0.9, step=0.01, label="Model temperature")
|
375 |
|