Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,16 +1,18 @@
|
|
1 |
import gradio as gr
|
2 |
from inference import InferencePipeline
|
3 |
|
|
|
4 |
i = InferencePipeline()
|
5 |
|
|
|
6 |
demo = gr.Interface(
|
7 |
-
fn=i.voice_conversion,
|
8 |
-
inputs=gr.Audio(
|
9 |
-
outputs=gr.Audio(label="Converted Voice"),
|
10 |
title="Voice Conversion Demo",
|
11 |
description="Voice Conversion: Transform the input voice to a target voice.",
|
12 |
-
allow_flagging="never"
|
13 |
)
|
14 |
|
15 |
if __name__ == "__main__":
|
16 |
-
demo.launch()
|
|
|
1 |
import gradio as gr
|
2 |
from inference import InferencePipeline
|
3 |
|
4 |
+
# Initialize your model or inference pipeline
|
5 |
i = InferencePipeline()
|
6 |
|
7 |
+
# Define your Gradio interface
|
8 |
demo = gr.Interface(
|
9 |
+
fn=i.voice_conversion, # The function to convert voice
|
10 |
+
inputs=gr.Audio(label="Record or upload your voice"), # Define the input as audio
|
11 |
+
outputs=gr.Audio(label="Converted Voice"), # Define the output as audio
|
12 |
title="Voice Conversion Demo",
|
13 |
description="Voice Conversion: Transform the input voice to a target voice.",
|
14 |
+
allow_flagging="never"
|
15 |
)
|
16 |
|
17 |
if __name__ == "__main__":
|
18 |
+
demo.launch()
|