Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def infer(audio_input):
|
|
23 |
)
|
24 |
print(whisper_result)
|
25 |
|
26 |
-
return whisper_result[0]
|
27 |
|
28 |
css = """
|
29 |
#col-container {max-width: 510px; margin-left: auto; margin-right: auto;}
|
@@ -51,9 +51,10 @@ with gr.Blocks(css=css) as demo:
|
|
51 |
</div>""")
|
52 |
song_in = gr.Audio(label="Song input", type="filepath", source="upload")
|
53 |
getlyrics_btn = gr.Button("Get Lyrics !")
|
|
|
54 |
lyrics_res = gr.Textbox(label="Lyrics")
|
55 |
|
56 |
-
getlyrics_btn.click(fn=infer, inputs=[song_in], outputs=[lyrics_res])
|
57 |
|
58 |
demo.queue().launch()
|
59 |
|
|
|
23 |
)
|
24 |
print(whisper_result)
|
25 |
|
26 |
+
return splt_result, whisper_result[0]
|
27 |
|
28 |
css = """
|
29 |
#col-container {max-width: 510px; margin-left: auto; margin-right: auto;}
|
|
|
51 |
</div>""")
|
52 |
song_in = gr.Audio(label="Song input", type="filepath", source="upload")
|
53 |
getlyrics_btn = gr.Button("Get Lyrics !")
|
54 |
+
vocals_out = gr.Audio(label="Vocals Only")
|
55 |
lyrics_res = gr.Textbox(label="Lyrics")
|
56 |
|
57 |
+
getlyrics_btn.click(fn=infer, inputs=[song_in], outputs=[vocals_out, lyrics_res])
|
58 |
|
59 |
demo.queue().launch()
|
60 |
|