Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -115,23 +115,23 @@ with gr.Blocks() as demo:
|
|
| 115 |
)
|
| 116 |
|
| 117 |
# Audio Generation Section
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
)
|
| 128 |
-
generate_audio_button = gr.Button("Generate Audio 🎶")
|
| 129 |
-
audio_output = gr.Audio(
|
| 130 |
-
label="🎶 Generated Audio File",
|
| 131 |
-
type="filepath",
|
| 132 |
-
interactive=False,
|
| 133 |
-
info="Listen to the audio file generated from your script."
|
| 134 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 135 |
|
| 136 |
# Footer
|
| 137 |
gr.Markdown("""
|
|
|
|
| 115 |
)
|
| 116 |
|
| 117 |
# Audio Generation Section
|
| 118 |
+
gr.Markdown("## 🎧 Step 2: Generate Audio from Your Script")
|
| 119 |
+
with gr.Row():
|
| 120 |
+
audio_length = gr.Slider(
|
| 121 |
+
label="🎵 Audio Length (tokens)",
|
| 122 |
+
minimum=128,
|
| 123 |
+
maximum=1024,
|
| 124 |
+
step=64,
|
| 125 |
+
value=512,
|
| 126 |
+
info="Select the desired audio token length." # `info` is valid here
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
)
|
| 128 |
+
generate_audio_button = gr.Button("Generate Audio 🎶")
|
| 129 |
+
audio_output = gr.Audio(
|
| 130 |
+
label="🎶 Generated Audio File",
|
| 131 |
+
type="filepath", # Removed the `info` argument
|
| 132 |
+
interactive=False
|
| 133 |
+
)
|
| 134 |
+
|
| 135 |
|
| 136 |
# Footer
|
| 137 |
gr.Markdown("""
|