Create app.py
Browse files
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()
|