Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -249,10 +249,10 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
249 |
|
250 |
gr.Markdown("## Story Starters")
|
251 |
|
252 |
-
# Create
|
253 |
-
starter_btn1 = gr.Button("Starter 1", scale=1, min_width=250
|
254 |
-
starter_btn2 = gr.Button("Starter 2", scale=1, min_width=250
|
255 |
-
starter_btn3 = gr.Button("Starter 3", scale=1, min_width=250
|
256 |
starter_buttons = [starter_btn1, starter_btn2, starter_btn3]
|
257 |
|
258 |
# Simplified update function
|
@@ -342,7 +342,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
342 |
initial_examples = get_examples_for_genre("fantasy")
|
343 |
initial_button_data = tuple(
|
344 |
initial_examples[i] if i < len(initial_examples) else ""
|
345 |
-
for i in range(
|
346 |
)
|
347 |
|
348 |
# Update button text on page load
|
|
|
249 |
|
250 |
gr.Markdown("## Story Starters")
|
251 |
|
252 |
+
# Create three placeholder buttons for story starters
|
253 |
+
starter_btn1 = gr.Button("Starter 1", scale=1, min_width=250)
|
254 |
+
starter_btn2 = gr.Button("Starter 2", scale=1, min_width=250)
|
255 |
+
starter_btn3 = gr.Button("Starter 3", scale=1, min_width=250)
|
256 |
starter_buttons = [starter_btn1, starter_btn2, starter_btn3]
|
257 |
|
258 |
# Simplified update function
|
|
|
342 |
initial_examples = get_examples_for_genre("fantasy")
|
343 |
initial_button_data = tuple(
|
344 |
initial_examples[i] if i < len(initial_examples) else ""
|
345 |
+
for i in range(3)
|
346 |
)
|
347 |
|
348 |
# Update button text on page load
|