asigalov61 commited on
Commit
06f05a8
·
verified ·
1 Parent(s): 08fcb03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -9
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('Input MIDI type:', input_midi_type)
222
- print('Conversion type:', input_conv_type)
223
- print('Number of prime notes:', input_number_prime_notes)
224
- print('Number of notes to convert:', input_number_conv_notes)
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", step=1, label="Generation type")
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