Vaishnavi0404 commited on
Commit
b6e4f5d
·
verified ·
1 Parent(s): a2d17c3

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -0
app.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from diff_singer_infer import run_diffsinger_inference
3
+
4
+ def convert_to_singing_style(input_audio):
5
+ output_path = run_diffsinger_inference(input_audio)
6
+ return output_path
7
+
8
+ iface = gr.Interface(
9
+ fn=convert_to_singing_style,
10
+ inputs=gr.Audio(type="filepath", label="Upload TTS + Music Audio"),
11
+ outputs=gr.Audio(type="filepath", label="Singing Style Audio"),
12
+ title="Text to Singing Style (DiffSinger Inference)",
13
+ description="Upload your generated TTS + Music audio and get a realistic singing-style version using DiffSinger inference."
14
+ )
15
+
16
+ iface.launch()