asigalov61 commited on
Commit
347667d
1 Parent(s): bbf9a0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -36,7 +36,7 @@ def GenerateMIDI(idrums, iinstr, progress=gr.Progress()):
36
  print(start_tokens)
37
  print('=' * 70)
38
 
39
- inp = [start_tokens] * number_of_batches_to_generate
40
 
41
  inp = torch.LongTensor(inp).cpu()
42
 
@@ -199,8 +199,8 @@ if __name__ == "__main__":
199
  "(https://colab.research.google.com/github/asigalov61/Allegro-Music-Transformer/blob/main/Allegro_Music_Transformer_Composer.ipynb)"
200
  " for faster execution and endless generation"
201
  )
202
- input_drums = gr.Checkbox(label="Drums Controls", value = True, info="Drums present or not")
203
- input_instrument = gr.Radio(["Piano", "Guitar", "Bass", "Violin", "Cello", "Harp", "Trumpet", "Sax", "Flute", "Choir", "Organ"], value="Guitar", label="Lead Instrument Controls", info="Desired lead instrument")
204
  run_btn = gr.Button("generate", variant="primary")
205
 
206
  output_midi_seq = gr.Variable()
 
36
  print(start_tokens)
37
  print('=' * 70)
38
 
39
+ inp = [start_tokens]
40
 
41
  inp = torch.LongTensor(inp).cpu()
42
 
 
199
  "(https://colab.research.google.com/github/asigalov61/Allegro-Music-Transformer/blob/main/Allegro_Music_Transformer_Composer.ipynb)"
200
  " for faster execution and endless generation"
201
  )
202
+ input_drums = gr.Checkbox(label="Drums Controls", value = False, info="Drums present or not")
203
+ input_instrument = gr.Radio(["Piano", "Guitar", "Bass", "Violin", "Cello", "Harp", "Trumpet", "Sax", "Flute", "Choir", "Organ"], value="Piano", label="Lead Instrument Controls", info="Desired lead instrument")
204
  run_btn = gr.Button("generate", variant="primary")
205
 
206
  output_midi_seq = gr.Variable()