asigalov61 commited on
Commit
c07660f
·
verified ·
1 Parent(s): 35dc078

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -10,7 +10,6 @@ import spaces
10
  import gradio as gr
11
 
12
  import random
13
- import tqdm
14
 
15
  from midi_to_colab_audio import midi_to_colab_audio
16
  import TMIDIX
@@ -20,9 +19,7 @@ import matplotlib.pyplot as plt
20
  from inference import PianoTranscription
21
  from config import sample_rate
22
  from utilities import load_audio
23
-
24
- in_space = os.getenv("SYSTEM") == "spaces"
25
-
26
  # =================================================================================================
27
 
28
  @spaces.GPU
@@ -126,7 +123,9 @@ if __name__ == "__main__":
126
  soundfont = "SGM-v2.01-YamahaGrand-Guit-Bass-v2.7.sf2"
127
 
128
  app = gr.Blocks()
 
129
  with app:
 
130
  gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>ByteDance Solo Piano Audio to MIDI Transcription</h1>")
131
  gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>Transcribe any Solo Piano WAV or MP3 audio to MIDI</h1>")
132
  gr.Markdown(
 
10
  import gradio as gr
11
 
12
  import random
 
13
 
14
  from midi_to_colab_audio import midi_to_colab_audio
15
  import TMIDIX
 
19
  from inference import PianoTranscription
20
  from config import sample_rate
21
  from utilities import load_audio
22
+
 
 
23
  # =================================================================================================
24
 
25
  @spaces.GPU
 
123
  soundfont = "SGM-v2.01-YamahaGrand-Guit-Bass-v2.7.sf2"
124
 
125
  app = gr.Blocks()
126
+
127
  with app:
128
+
129
  gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>ByteDance Solo Piano Audio to MIDI Transcription</h1>")
130
  gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>Transcribe any Solo Piano WAV or MP3 audio to MIDI</h1>")
131
  gr.Markdown(