Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
•
3fa8ad4
1
Parent(s):
75d70c4
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
import os
|
|
|
|
|
3 |
os.system("midi_ddsp_download_model_weights")
|
4 |
def inference(audio):
|
5 |
os.system("midi_ddsp_synthesize --midi_path "+audio.name)
|
6 |
-
return
|
7 |
|
8 |
title = "Demucs"
|
9 |
description = "Gradio demo for Demucs: Music Source Separation in the Waveform Domain. To use it, simply upload your audio, or click one of the examples to load them. Read more at the links below."
|
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
+
from pathlib import Path
|
4 |
+
|
5 |
os.system("midi_ddsp_download_model_weights")
|
6 |
def inference(audio):
|
7 |
os.system("midi_ddsp_synthesize --midi_path "+audio.name)
|
8 |
+
return Path(audio.name).stem+"/0_violin.wav"
|
9 |
|
10 |
title = "Demucs"
|
11 |
description = "Gradio demo for Demucs: Music Source Separation in the Waveform Domain. To use it, simply upload your audio, or click one of the examples to load them. Read more at the links below."
|