Update app.py
Browse files
app.py
CHANGED
@@ -171,10 +171,10 @@ with gr.Blocks(theme=gr.themes.Base(primary_hue="teal", secondary_hue="teal", ne
|
|
171 |
use_speaker_boost_checkbox = gr.Checkbox(label="Use Speaker Boost (Gunakan Speaker Boost)", value=False,
|
172 |
info="Enables speaker boost for clearer and louder voice output, especially in quiet environments.")
|
173 |
|
174 |
-
with gr.Accordion("Delete Clone Voice", open=False):
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
|
179 |
with gr.Row():
|
180 |
with gr.Column(scale=1):
|
@@ -198,13 +198,17 @@ with gr.Blocks(theme=gr.themes.Base(primary_hue="teal", secondary_hue="teal", ne
|
|
198 |
generate_button = gr.Button("Generate Story", variant="primary")
|
199 |
|
200 |
with gr.Row():
|
|
|
|
|
|
|
|
|
|
|
201 |
story_preview = gr.Textbox(
|
202 |
placeholder="Story Preview will appear here",
|
203 |
label="Kisah Pilihanmu",
|
204 |
interactive=False,
|
205 |
elem_id="story-preview",
|
206 |
)
|
207 |
-
# Display story preview
|
208 |
|
209 |
# Story button actions
|
210 |
story_button1.click(fn=lambda: gr.update(value=stories["Kisah Awan dan Pelangi di Atas Danau Toba"]), outputs=story_preview)
|
|
|
171 |
use_speaker_boost_checkbox = gr.Checkbox(label="Use Speaker Boost (Gunakan Speaker Boost)", value=False,
|
172 |
info="Enables speaker boost for clearer and louder voice output, especially in quiet environments.")
|
173 |
|
174 |
+
#with gr.Accordion("Delete Clone Voice", open=False):
|
175 |
+
# delete_status = gr.Textbox(label="Status", placeholder="Voice ID will appear here if deletion is successful.", interactive=False)
|
176 |
+
# voice_id_input = gr.Textbox(label="Enter Voice ID to Delete", placeholder="Enter the Voice ID for deletion")
|
177 |
+
# delete_button = gr.Button("Delete Cloned Voice", size="lg", variant="danger")
|
178 |
|
179 |
with gr.Row():
|
180 |
with gr.Column(scale=1):
|
|
|
198 |
generate_button = gr.Button("Generate Story", variant="primary")
|
199 |
|
200 |
with gr.Row():
|
201 |
+
with gr.Column(scale=1):
|
202 |
+
with gr.Accordion("Delete Clone Voice", open=False):
|
203 |
+
delete_status = gr.Textbox(label="Status", placeholder="Voice ID will appear here if deletion is successful.", interactive=False)
|
204 |
+
voice_id_input = gr.Textbox(label="Enter Voice ID to Delete", placeholder="Enter the Voice ID for deletion")
|
205 |
+
delete_button = gr.Button("Delete Cloned Voice", size="lg", variant="danger")
|
206 |
story_preview = gr.Textbox(
|
207 |
placeholder="Story Preview will appear here",
|
208 |
label="Kisah Pilihanmu",
|
209 |
interactive=False,
|
210 |
elem_id="story-preview",
|
211 |
)
|
|
|
212 |
|
213 |
# Story button actions
|
214 |
story_button1.click(fn=lambda: gr.update(value=stories["Kisah Awan dan Pelangi di Atas Danau Toba"]), outputs=story_preview)
|