kwabs22 commited on
Commit
c9ef21a
·
1 Parent(s): ec2dcdb

Trying to simplify

Browse files
Files changed (1) hide show
  1. app.py +10 -16
app.py CHANGED
@@ -535,14 +535,19 @@ with gr.Blocks() as demo:
535
  with gr.Tab("Skeleton Generator"):
536
  gr.HTML("Some Kinds of game skeletons ideas - Timelines, Graph as State machine paths, Economy ecosystem")
537
  gr.HTML("One prompt to be used to test models - <br>Please make 10 python lists for the types of media files and their purposes in a game and then use those lists to random generate a timeline of 20 items when the function is called <br>Great next suggest ways to improve this function to create better timelines")
538
- # with gr.Tab("Generate Timeline"):
539
- # with gr.Tab("Asset generation considered"):
540
- # gr.HTML("Iframes are a placeholder for sample assets")
541
-
542
- # with gr.Tab("Prototype for finegrained editing of time line before conversion to game format"):
543
  with gr.Row():
544
  gr.Textbox(value=timeline_with_media, lines=4)
545
  gr.Textbox(value=timeline_without_media, lines=4)
 
 
 
 
 
 
 
 
 
 
546
  gr.HTML("Splits by new line")
547
  input_text = gr.Textbox(label="Input Text", lines=10)
548
  output_group = gr.Group()
@@ -550,17 +555,6 @@ with gr.Blocks() as demo:
550
  @gr.render(inputs=input_text)
551
  def update(text):
552
  return show_elements(text)
553
- # with gr.Tab("Conversion of game version"):
554
- gr.HTML("Can copy in the Test Example State Machine tab - only linear path for now")
555
- media_checkbox = gr.Checkbox(label="Include Media")
556
- output_text = gr.Code(language="json")
557
-
558
- media_checkbox.change(
559
- fn=show_game_structure,
560
- inputs=[media_checkbox],
561
- outputs=[output_text]
562
- )
563
- # with gr.Tab("Without Asset generation consideration"):
564
  gr.Markdown("# Story and Timeline Generator")
565
  gr.Markdown("Click the button to generate a random timeline and story based on UI elements and story events. <br>Ask an LLM to use this to write a story around")
566
 
 
535
  with gr.Tab("Skeleton Generator"):
536
  gr.HTML("Some Kinds of game skeletons ideas - Timelines, Graph as State machine paths, Economy ecosystem")
537
  gr.HTML("One prompt to be used to test models - <br>Please make 10 python lists for the types of media files and their purposes in a game and then use those lists to random generate a timeline of 20 items when the function is called <br>Great next suggest ways to improve this function to create better timelines")
 
 
 
 
 
538
  with gr.Row():
539
  gr.Textbox(value=timeline_with_media, lines=4)
540
  gr.Textbox(value=timeline_without_media, lines=4)
541
+ with gr.Tab(""):
542
+ gr.HTML("Can copy in the Test Example State Machine tab - only linear path for now")
543
+ media_checkbox = gr.Checkbox(label="Include Media")
544
+ output_text = gr.Code(language="json")
545
+
546
+ media_checkbox.change(
547
+ fn=show_game_structure,
548
+ inputs=[media_checkbox],
549
+ outputs=[output_text]
550
+ )
551
  gr.HTML("Splits by new line")
552
  input_text = gr.Textbox(label="Input Text", lines=10)
553
  output_group = gr.Group()
 
555
  @gr.render(inputs=input_text)
556
  def update(text):
557
  return show_elements(text)
 
 
 
 
 
 
 
 
 
 
 
558
  gr.Markdown("# Story and Timeline Generator")
559
  gr.Markdown("Click the button to generate a random timeline and story based on UI elements and story events. <br>Ask an LLM to use this to write a story around")
560