Spaces:
Sleeping
Sleeping
init!
Browse files
app.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
# Define the Gradio interface
|
| 3 |
+
iface = gr.Interface(
|
| 4 |
+
fn=generate_voice,
|
| 5 |
+
inputs=[
|
| 6 |
+
gr.Textbox(label="Input Text"),
|
| 7 |
+
gr.Audio(label="Input Audio", type="filepath")
|
| 8 |
+
],
|
| 9 |
+
outputs=gr.Audio(label="Cloned Voice"),
|
| 10 |
+
title="Voice Cloning TTS"
|
| 11 |
+
)
|
| 12 |
+
|
| 13 |
+
# Launch the interface
|
| 14 |
+
iface.launch()
|