Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -151,17 +151,7 @@ with gr.Blocks() as demo:
|
|
| 151 |
**Note:** Voice-over generation is currently inactive.
|
| 152 |
This feature will be available in future updates!
|
| 153 |
""")
|
| 154 |
-
|
| 155 |
-
speaker = gr.Textbox(label="Voice Style (optional)", placeholder="E.g., male, female, or neutral.")
|
| 156 |
-
|
| 157 |
-
generate_voice_button = gr.Button("Generate Voice")
|
| 158 |
-
voice_output = gr.Audio(label="Generated Voice", type="filepath")
|
| 159 |
-
|
| 160 |
-
generate_voice_button.click(
|
| 161 |
-
fn=generate_voice,
|
| 162 |
-
inputs=[script_output, speaker],
|
| 163 |
-
outputs=[voice_output],
|
| 164 |
-
)
|
| 165 |
|
| 166 |
# Step 3: Generate Music
|
| 167 |
with gr.Tab("Step 3: Generate Music"):
|
|
@@ -183,17 +173,7 @@ with gr.Blocks() as demo:
|
|
| 183 |
**Note:** Audio blending functionality is currently inactive.
|
| 184 |
This feature will be available in future updates!
|
| 185 |
""")
|
| 186 |
-
|
| 187 |
-
ducking = gr.Checkbox(label="Enable Ducking", value=True)
|
| 188 |
-
|
| 189 |
-
blend_button = gr.Button("Blend Audio")
|
| 190 |
-
final_output = gr.Audio(label="Final Promo Audio", type="filepath")
|
| 191 |
-
|
| 192 |
-
blend_button.click(
|
| 193 |
-
fn=blend_audio,
|
| 194 |
-
inputs=[voice_output, music_output, ducking],
|
| 195 |
-
outputs=[final_output],
|
| 196 |
-
)
|
| 197 |
|
| 198 |
gr.Markdown("""
|
| 199 |
<hr>
|
|
|
|
| 151 |
**Note:** Voice-over generation is currently inactive.
|
| 152 |
This feature will be available in future updates!
|
| 153 |
""")
|
| 154 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 155 |
|
| 156 |
# Step 3: Generate Music
|
| 157 |
with gr.Tab("Step 3: Generate Music"):
|
|
|
|
| 173 |
**Note:** Audio blending functionality is currently inactive.
|
| 174 |
This feature will be available in future updates!
|
| 175 |
""")
|
| 176 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 177 |
|
| 178 |
gr.Markdown("""
|
| 179 |
<hr>
|