asigalov61 commited on
Commit
d0ecddf
1 Parent(s): 0a38635

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -26,7 +26,7 @@ import matplotlib.pyplot as plt
26
 
27
  # =================================================================================================
28
 
29
- @spaces.GPU
30
  def Generate_Chords(input_midi, input_num_prime_chords, input_num_gen_chords):
31
  print('=' * 70)
32
  print('Req start time: {:%Y-%m-%d %H:%M:%S}'.format(datetime.datetime.now(PDT)))
@@ -37,7 +37,7 @@ def Generate_Chords(input_midi, input_num_prime_chords, input_num_gen_chords):
37
 
38
  SEQ_LEN = 8192
39
  PAD_IDX = 2239
40
- DEVICE = 'cuda' # 'cpu'
41
 
42
  # instantiate the model
43
 
 
26
 
27
  # =================================================================================================
28
 
29
+ # @spaces.GPU
30
  def Generate_Chords(input_midi, input_num_prime_chords, input_num_gen_chords):
31
  print('=' * 70)
32
  print('Req start time: {:%Y-%m-%d %H:%M:%S}'.format(datetime.datetime.now(PDT)))
 
37
 
38
  SEQ_LEN = 8192
39
  PAD_IDX = 2239
40
+ DEVICE = 'cpu' # 'cpu'
41
 
42
  # instantiate the model
43