Spaces:
Sleeping
Sleeping
Update app.py
#3
by asad231 - opened
app.py
CHANGED
|
@@ -195,19 +195,19 @@ with gr.Blocks() as iface: # Removed theme argument
|
|
| 195 |
gr.Markdown("### 🎨 Story Settings")
|
| 196 |
|
| 197 |
with gr.Group():
|
| 198 |
-
gr.Markdown("👶 Child's Age")
|
| 199 |
age_input = gr.Dropdown(age_options, value="5", show_label=False)
|
| 200 |
|
| 201 |
with gr.Group():
|
| 202 |
-
gr.Markdown("🎭 Story Theme")
|
| 203 |
theme_input = gr.Dropdown(theme_options, value="Adventure", show_label=False)
|
| 204 |
|
| 205 |
with gr.Group():
|
| 206 |
-
gr.Markdown("🌍 Language")
|
| 207 |
language_input = gr.Dropdown(language_options, value="English", show_label=False)
|
| 208 |
|
| 209 |
with gr.Group():
|
| 210 |
-
gr.Markdown("🔊 Audio Options")
|
| 211 |
tts_input = gr.Checkbox(label="🎵 Include Audio Story", value=True)
|
| 212 |
|
| 213 |
generate_btn = gr.Button("✨ Create Magical Story! ✨", elem_classes="generate-btn")
|
|
@@ -233,5 +233,5 @@ with gr.Blocks() as iface: # Removed theme argument
|
|
| 233 |
# -------------------------------------------------------------
|
| 234 |
# LAUNCH APP
|
| 235 |
# -------------------------------------------------------------
|
| 236 |
-
if
|
| 237 |
-
|
|
|
|
| 195 |
gr.Markdown("### 🎨 Story Settings")
|
| 196 |
|
| 197 |
with gr.Group():
|
| 198 |
+
gr.Markdown("👶 *Child's Age*")
|
| 199 |
age_input = gr.Dropdown(age_options, value="5", show_label=False)
|
| 200 |
|
| 201 |
with gr.Group():
|
| 202 |
+
gr.Markdown("🎭 *Story Theme*")
|
| 203 |
theme_input = gr.Dropdown(theme_options, value="Adventure", show_label=False)
|
| 204 |
|
| 205 |
with gr.Group():
|
| 206 |
+
gr.Markdown("🌍 *Language*")
|
| 207 |
language_input = gr.Dropdown(language_options, value="English", show_label=False)
|
| 208 |
|
| 209 |
with gr.Group():
|
| 210 |
+
gr.Markdown("🔊 *Audio Options*")
|
| 211 |
tts_input = gr.Checkbox(label="🎵 Include Audio Story", value=True)
|
| 212 |
|
| 213 |
generate_btn = gr.Button("✨ Create Magical Story! ✨", elem_classes="generate-btn")
|
|
|
|
| 233 |
# -------------------------------------------------------------
|
| 234 |
# LAUNCH APP
|
| 235 |
# -------------------------------------------------------------
|
| 236 |
+
if __name__ == "__main__":
|
| 237 |
+
iface.launch()
|