Spaces:
Runtime error
Runtime error
kwabs22
commited on
Commit
·
6a73343
1
Parent(s):
5509fa5
Refactor Proto Assist accordion to absorb mess
Browse files
app.py
CHANGED
|
@@ -261,7 +261,7 @@ def generate_story_and_timeline(no_ui_timeline_points=10, num_lists=1, items_per
|
|
| 261 |
# print(merged_timeline)
|
| 262 |
|
| 263 |
# Sort the merged timeline based on the random numbers
|
| 264 |
-
|
| 265 |
# no_media_merged_timeline.sort(key=lambda x: x[0])
|
| 266 |
|
| 267 |
# Create the story
|
|
@@ -786,11 +786,11 @@ with gr.Blocks() as demo:
|
|
| 786 |
timeline_items_per_list_slider = gr.Slider(minimum=1, maximum=10, step=1, label="Items per List", value=3)
|
| 787 |
timeline_include_existing_games = gr.Checkbox(label="Include Existing Game Inspirations", value=True)
|
| 788 |
timeline_include_multiplayer = gr.Checkbox(label="Include Multiplayer Features", value=True)
|
| 789 |
-
timeline_generate_button = gr.Button("Generate Random Suggestions").click(
|
| 790 |
-
|
| 791 |
-
|
| 792 |
-
|
| 793 |
-
)
|
| 794 |
generate_button = gr.Button("Generate Story and Timeline (Click to get UI that will assist with JSON formatting)")
|
| 795 |
|
| 796 |
@gr.render(inputs=game_structure_output_text_with_media)
|
|
|
|
| 261 |
# print(merged_timeline)
|
| 262 |
|
| 263 |
# Sort the merged timeline based on the random numbers
|
| 264 |
+
merged_timeline.sort(key=lambda x: x[0])
|
| 265 |
# no_media_merged_timeline.sort(key=lambda x: x[0])
|
| 266 |
|
| 267 |
# Create the story
|
|
|
|
| 786 |
timeline_items_per_list_slider = gr.Slider(minimum=1, maximum=10, step=1, label="Items per List", value=3)
|
| 787 |
timeline_include_existing_games = gr.Checkbox(label="Include Existing Game Inspirations", value=True)
|
| 788 |
timeline_include_multiplayer = gr.Checkbox(label="Include Multiplayer Features", value=True)
|
| 789 |
+
# timeline_generate_button = gr.Button("Generate Random Suggestions").click(
|
| 790 |
+
# timeline_get_random_suggestions,
|
| 791 |
+
# inputs=[timeline_num_lists_slider, timeline_items_per_list_slider, timeline_include_existing_games, timeline_include_multiplayer],
|
| 792 |
+
# outputs=[timeline_output_text, timeline_selected_lists_text]
|
| 793 |
+
# )
|
| 794 |
generate_button = gr.Button("Generate Story and Timeline (Click to get UI that will assist with JSON formatting)")
|
| 795 |
|
| 796 |
@gr.render(inputs=game_structure_output_text_with_media)
|