asigalov61 commited on
Commit
c9dbbc8
1 Parent(s): 55babfa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -32,7 +32,7 @@ def TranscribePianoAudio(input_file):
32
  start_time = reqtime.time()
33
  print('=' * 70)
34
 
35
- fn = os.path.basename(str(input_file))
36
  fn1 = fn.split('.')[0]
37
 
38
  print('-' * 70)
@@ -41,7 +41,7 @@ def TranscribePianoAudio(input_file):
41
  print('Loading audio...')
42
 
43
  # Load audio
44
- (audio, _) = load_audio(str(input_file), sr=sample_rate, mono=True)
45
  print('Done!')
46
  print('-' * 70)
47
  print('Loading transcriptor..')
@@ -148,7 +148,7 @@ if __name__ == "__main__":
148
  )
149
  gr.Markdown("## Upload your Solo Piano WAV or MP3 audio or select a sample example audio file")
150
 
151
- input_audio = gr.File(label="Input Solo Piano WAV or MP3 Audio File", file_types=["audio"])
152
 
153
  run_btn = gr.Button("transcribe", variant="primary")
154
 
 
32
  start_time = reqtime.time()
33
  print('=' * 70)
34
 
35
+ fn = os.path.basename(input_file)
36
  fn1 = fn.split('.')[0]
37
 
38
  print('-' * 70)
 
41
  print('Loading audio...')
42
 
43
  # Load audio
44
+ (audio, _) = load_audio(input_file, sr=sample_rate, mono=True)
45
  print('Done!')
46
  print('-' * 70)
47
  print('Loading transcriptor..')
 
148
  )
149
  gr.Markdown("## Upload your Solo Piano WAV or MP3 audio or select a sample example audio file")
150
 
151
+ input_audio = gr.File(label="Input Solo Piano WAV or MP3 Audio File")
152
 
153
  run_btn = gr.Button("transcribe", variant="primary")
154