kwabs22 commited on
Commit
b559984
·
1 Parent(s): bc92805

Fixing Edit while play

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1136,7 +1136,7 @@ Creating more diverse paths through the game""")
1136
  gr.Markdown("# Debugging")
1137
  with gr.Row():
1138
  ewpwaerror_box = gr.Textbox(label="Path Errors", lines=4, value=path_errors)
1139
- ewpwacustom_config = gr.Textbox(label="Custom Configuration (JSON)", value=json.dumps(all_states, default=lambda o: o.__dict__, indent=2), lines=4)
1140
  ewpwacustom_configbtn = gr.Button("Load Custom Config")
1141
 
1142
  with gr.Row():
@@ -1208,7 +1208,7 @@ Creating more diverse paths through the game""")
1208
  def update(ewpwacustom_config):
1209
  return show_elements_json_input(ewpwacustom_config)
1210
 
1211
- ewpgenerate_button.click(generate_story_and_timeline, inputs=[ewpgenerate_no_story_timeline_points, ewpgenerate_no_ui_timeline_points, ewptimeline_num_lists_slider, ewptimeline_items_per_list_slider, ewptimeline_include_existing_games, ewptimeline_include_multiplayer], outputs=[ewptimeline_output_with_assets, ewpstory_output, ewpgame_structure_output_text_with_media, ewptimeline_output_text, ewptimeline_selected_lists_text]) #ewptimeline_output_with_assets, ewptimeline_output, ewpstory_output, ewpwacustom_config, ewpgame_structure_output_text]) #ewpgame_structure_output_text_with_media, ewpgame_structure_output_text])
1212
 
1213
  with gr.Tab("Asset Generation Considerations"):
1214
  with gr.Row():
 
1136
  gr.Markdown("# Debugging")
1137
  with gr.Row():
1138
  ewpwaerror_box = gr.Textbox(label="Path Errors", lines=4, value=path_errors)
1139
+ ewpwacustom_config = gr.Textbox(label="Custom Configuration (JSON)", lines=4) #value=json.dumps(all_states, default=lambda o: o.__dict__, indent=2), lines=4) #Commented out due to initial load issues
1140
  ewpwacustom_configbtn = gr.Button("Load Custom Config")
1141
 
1142
  with gr.Row():
 
1208
  def update(ewpwacustom_config):
1209
  return show_elements_json_input(ewpwacustom_config)
1210
 
1211
+ ewpgenerate_button.click(generate_story_and_timeline, inputs=[ewpgenerate_no_story_timeline_points, ewpgenerate_no_ui_timeline_points, ewptimeline_num_lists_slider, ewptimeline_items_per_list_slider, ewptimeline_include_existing_games, ewptimeline_include_multiplayer], outputs=[ewptimeline_output_with_assets, ewpstory_output, ewpwacustom_config, ewptimeline_output_text, ewptimeline_selected_lists_text]) #ewptimeline_output_with_assets, ewptimeline_output, ewpstory_output, ewpwacustom_config, ewpgame_structure_output_text]) #ewpgame_structure_output_text_with_media, ewpgame_structure_output_text])
1212
 
1213
  with gr.Tab("Asset Generation Considerations"):
1214
  with gr.Row():