Spaces:
Running
on
Zero
Running
on
Zero
asigalov61
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def TranscribePianoAudio(input_audio):
|
|
32 |
start_time = reqtime.time()
|
33 |
print('=' * 70)
|
34 |
|
35 |
-
f =
|
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 |
-
|
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 |
|