asigalov61 commited on
Commit
bbd3dd5
1 Parent(s): e618966

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -3,7 +3,7 @@ import glob
3
  import json
4
  import os.path
5
 
6
- import time
7
  import datetime
8
  from pytz import timezone
9
 
@@ -59,7 +59,7 @@ def generate_drums(notes_times,
59
  def GenerateDrums(input_midi, input_num_tokens):
60
  print('=' * 70)
61
  print('Req start time: {:%Y-%m-%d %H:%M:%S}'.format(datetime.datetime.now(PDT)))
62
- start_time = time.time()
63
 
64
  fn = os.path.basename(input_midi)
65
  fn1 = fn.split('.')[0]
@@ -207,7 +207,7 @@ def GenerateDrums(input_midi, input_num_tokens):
207
  print('-' * 70)
208
  print('Req end time: {:%Y-%m-%d %H:%M:%S}'.format(datetime.datetime.now(PDT)))
209
  print('-' * 70)
210
- print('Req execution time:', (time.time() - start_time), 'sec')
211
 
212
  yield output_midi_title, output_midi_summary, output_midi, output_audio, output_plot
213
 
 
3
  import json
4
  import os.path
5
 
6
+ import time as reqtime
7
  import datetime
8
  from pytz import timezone
9
 
 
59
  def GenerateDrums(input_midi, input_num_tokens):
60
  print('=' * 70)
61
  print('Req start time: {:%Y-%m-%d %H:%M:%S}'.format(datetime.datetime.now(PDT)))
62
+ start_time = reqtime.time()
63
 
64
  fn = os.path.basename(input_midi)
65
  fn1 = fn.split('.')[0]
 
207
  print('-' * 70)
208
  print('Req end time: {:%Y-%m-%d %H:%M:%S}'.format(datetime.datetime.now(PDT)))
209
  print('-' * 70)
210
+ print('Req execution time:', (reqtime.time() - start_time), 'sec')
211
 
212
  yield output_midi_title, output_midi_summary, output_midi, output_audio, output_plot
213