asigalov61 commited on
Commit
1390245
·
verified ·
1 Parent(s): 2dbabd8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,7 +32,7 @@ def TranscribePianoAudio(input_audio):
32
  start_time = reqtime.time()
33
  print('=' * 70)
34
 
35
- f = input_midi.name
36
  fn = os.path.basename(f)
37
  fn1 = fn.split('.')[0]
38
 
@@ -151,7 +151,7 @@ if __name__ == "__main__":
151
  )
152
  gr.Markdown("## Upload your Solo Piano WAV or MP3 audio or select a sample example audio file")
153
 
154
- input_midi = gr.File(label="Input Solo Piano WAV or MP3 Audio File", file_types=[".wav", ".mp3"])
155
 
156
  run_btn = gr.Button("transcribe", variant="primary")
157
 
 
32
  start_time = reqtime.time()
33
  print('=' * 70)
34
 
35
+ f = input_audio.name
36
  fn = os.path.basename(f)
37
  fn1 = fn.split('.')[0]
38
 
 
151
  )
152
  gr.Markdown("## Upload your Solo Piano WAV or MP3 audio or select a sample example audio file")
153
 
154
+ input_audio = gr.File(label="Input Solo Piano WAV or MP3 Audio File", file_types=[".wav", ".mp3"])
155
 
156
  run_btn = gr.Button("transcribe", variant="primary")
157