Spaces:
Running
on
Zero
Running
on
Zero
asigalov61
commited on
Commit
•
c9dbbc8
1
Parent(s):
55babfa
Update app.py
Browse files
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(
|
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(
|
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"
|
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 |
|