kwabs22 commited on
Commit
8bbd85e
·
1 Parent(s): ee7fb1c

More rearrangement

Browse files
Files changed (2) hide show
  1. app.py +19 -19
  2. relatively_constant_variables.py +170 -0
app.py CHANGED
@@ -782,9 +782,9 @@ def LinPEWFformat_prompt(current_prompt, prev_messages):
782
  with gr.Blocks() as demo:
783
  with gr.Accordion("Config and Asset Assistance - Click to open", open=False):
784
  gr.HTML("Jonas Tyroller - This problem changes your perspective on game dev - minimise the cost of exploration so you can explore more (17:00) | dont make the same game again but worse (:) <br>https://youtu.be/o5K0uqhxgsE")
785
- with gr.Accordion("Leaveraging Huggingface chat"):
786
  with gr.Tab("Hugging Chat"):
787
- gr.HTML("https://huggingface.co/chat - Huggingface chat supports - State Management (Threads), Image Generation and editing, Websearch, Document parsing (PDF?), Assistants and larger models than zero gpu can support in July 2024 (Unquantised 30B and above)")
788
  gr.HTML("Existing Assistants to use and planning custom assistants placeholder")
789
  with gr.Tab("ZeroGPU"):
790
  gr.HTML("Copy paste any old config to llm and ask to remix is the easiest <br>To bake 'Moral of the story' in you have to be very deliberate")
@@ -845,8 +845,10 @@ with gr.Blocks() as demo:
845
  with gr.Tab("Function Call as FAQ"):
846
  gr.HTML("Placeholder for media task query routing as dual purpose in workflow and for user queries as psuedo RAG engine")
847
  gr.HTML("https://llama.meta.com/docs/model-cards-and-prompt-formats/llama3_1/#built-in-tooling - The three built-in tools (brave_search, wolfram_alpha, and code interpreter) can be turned on using the system prompt")
848
- with gr.Tab("Embedded Spaces"):
849
  gr.HTML("In Asset Generation Tab under Text")
 
 
850
  gr.Markdown("# Current Workflow = Mermaid Diagram to Story to JSON (through LLM and fix JSON by hand) to Media prompts to Asset Gneration")
851
  with gr.Tab("Main problem to solve - Concept combination / integration and non-linear progression planning"):
852
  gr.HTML("The story and the gameplay dont have to occur at the same time - eg. ")
@@ -871,13 +873,21 @@ with gr.Blocks() as demo:
871
  with gr.Accordion("Mermaid Structures - click to open", open=False):
872
  for key, item in examplemermaidconceptblendingstrutures.items():
873
  gr.Code(item, label=key)
874
- with gr.Tab("Guidance / Themes to consider before you attempt config (Currently Qwen 0.5B)"):
875
-
876
- with gr.Tab("Themes and Topics"):
877
- gr.HTML("https://en.wikipedia.org/wiki/History#Periods")
878
 
879
  with gr.Tab("New Config Proto Assist"):
880
  gr.HTML("Trying to abstract the process into one worflow is beyond me so multiple paths to goal (config) is the aim now")
 
 
 
 
 
 
 
 
 
 
 
 
881
  with gr.Tab("Linear - Player List to Empty Config with Edit support"):
882
  with gr.Accordion("Can copy in the Test Example State Machine tab - only linear path for now", open=False):
883
  gr.Markdown("# Story and Timeline Generator")
@@ -955,18 +965,6 @@ with gr.Blocks() as demo:
955
  LinPEWFprevious_messages.append(item)
956
 
957
  #with gr.Accordion("Decisions / Timeline Creation to Story to Config Conversation", open=False):
958
- with gr.Tab("Branching - Decisions / Timeline Creation to Story to Config Conversation"):
959
- gr.HTML("Structures for interesting timeline progression")
960
- gr.HTML("Claude Artifacts to illustrate nested structure brainstorms - <br> https://claude.site/artifacts/4a910d81-1541-49f4-8531-4f27fe56cd1e <br> https://claude.site/artifacts/265e9242-2093-46e1-9011-ed6ad938be90?fullscreen=false <br> ")
961
- gr.HTML("Placeholder - Considerations - Story from the perspective of Main character or NPC in the LLM genereated story")
962
- mermaideditoriframebtn = gr.Button("Load Mermaid Editor")
963
- mermaideditoriframe = gr.HTML("")
964
- mermaideditoriframebtn.click(fn=lambda x: "<iframe src='https://mermaid.live/' width='100%' height='1000px'></iframe>", outputs=mermaideditoriframe)
965
- with gr.Accordion("Mermaid Structures - click to open", open=False):
966
- for key, item in mermaidstorystructures.items():
967
- with gr.Accordion(key, open=False):
968
- gr.Code(item, label=key)
969
-
970
  with gr.Tab("Branching - Network analysis to Game config"):
971
  gr.HTML("Placeholder for analysing multiple stories for their network structures and creating general rules for a strucutre generator based of named entity recognition and bias to locations or people - The extreme long way")
972
 
@@ -1022,6 +1020,8 @@ Creating more diverse paths through the game""")
1022
  """ + display_tipsupdatedconfigatbeinningofthisspace + """
1023
  </div>
1024
  </div>""")
 
 
1025
  with gr.Tab("Old Ideas to merge"):
1026
  gr.HTML("Random Scenario / Song to 'full game' manual or auto is end goal ")
1027
  gr.HTML("Componets (outside Code Support for Config): Decisions (and context explanation), Nested Sections, Media (Especially to affect decisions), Replayability (GTA and Tekken type mechanics in text form), Theme integration (Modified Varibles that affect UI or config order)")
 
782
  with gr.Blocks() as demo:
783
  with gr.Accordion("Config and Asset Assistance - Click to open", open=False):
784
  gr.HTML("Jonas Tyroller - This problem changes your perspective on game dev - minimise the cost of exploration so you can explore more (17:00) | dont make the same game again but worse (:) <br>https://youtu.be/o5K0uqhxgsE")
785
+ with gr.Accordion("Leaveraging LLMs"):
786
  with gr.Tab("Hugging Chat"):
787
+ gr.HTML("https://huggingface.co/chat<br>Huggingface chat supports - State Management (Threads), Image Generation and editing, Websearch, Document parsing (PDF?), Assistants and larger models than zero gpu can support in July 2024 (Unquantised 30B and above)")
788
  gr.HTML("Existing Assistants to use and planning custom assistants placeholder")
789
  with gr.Tab("ZeroGPU"):
790
  gr.HTML("Copy paste any old config to llm and ask to remix is the easiest <br>To bake 'Moral of the story' in you have to be very deliberate")
 
845
  with gr.Tab("Function Call as FAQ"):
846
  gr.HTML("Placeholder for media task query routing as dual purpose in workflow and for user queries as psuedo RAG engine")
847
  gr.HTML("https://llama.meta.com/docs/model-cards-and-prompt-formats/llama3_1/#built-in-tooling - The three built-in tools (brave_search, wolfram_alpha, and code interpreter) can be turned on using the system prompt")
848
+ with gr.Tab("Embedded Spaces and gradio client"):
849
  gr.HTML("In Asset Generation Tab under Text")
850
+ with gr.Tab("Preview APIs"):
851
+ gr.HTML("July 2024 - Gemini, Cohere and Groq rate limit free APIs")
852
  gr.Markdown("# Current Workflow = Mermaid Diagram to Story to JSON (through LLM and fix JSON by hand) to Media prompts to Asset Gneration")
853
  with gr.Tab("Main problem to solve - Concept combination / integration and non-linear progression planning"):
854
  gr.HTML("The story and the gameplay dont have to occur at the same time - eg. ")
 
873
  with gr.Accordion("Mermaid Structures - click to open", open=False):
874
  for key, item in examplemermaidconceptblendingstrutures.items():
875
  gr.Code(item, label=key)
 
 
 
 
876
 
877
  with gr.Tab("New Config Proto Assist"):
878
  gr.HTML("Trying to abstract the process into one worflow is beyond me so multiple paths to goal (config) is the aim now")
879
+ with gr.Tab("Branching - Decisions / Timeline Creation to Story to Config Conversation"):
880
+ gr.HTML("Structures for interesting timeline progression")
881
+ gr.HTML("Claude Artifacts to illustrate nested structure brainstorms - <br> https://claude.site/artifacts/4a910d81-1541-49f4-8531-4f27fe56cd1e <br> https://claude.site/artifacts/265e9242-2093-46e1-9011-ed6ad938be90?fullscreen=false <br> ")
882
+ gr.HTML("Placeholder - Considerations - Story from the perspective of Main character or NPC in the LLM genereated story")
883
+ mermaideditoriframebtn = gr.Button("Load Mermaid Editor")
884
+ mermaideditoriframe = gr.HTML("")
885
+ mermaideditoriframebtn.click(fn=lambda x: "<iframe src='https://mermaid.live/' width='100%' height='1000px'></iframe>", outputs=mermaideditoriframe)
886
+ with gr.Accordion("Mermaid Structures - click to open", open=False):
887
+ for key, item in mermaidstorystructures.items():
888
+ with gr.Accordion(key, open=False):
889
+ gr.Code(item, label=key)
890
+
891
  with gr.Tab("Linear - Player List to Empty Config with Edit support"):
892
  with gr.Accordion("Can copy in the Test Example State Machine tab - only linear path for now", open=False):
893
  gr.Markdown("# Story and Timeline Generator")
 
965
  LinPEWFprevious_messages.append(item)
966
 
967
  #with gr.Accordion("Decisions / Timeline Creation to Story to Config Conversation", open=False):
 
 
 
 
 
 
 
 
 
 
 
 
968
  with gr.Tab("Branching - Network analysis to Game config"):
969
  gr.HTML("Placeholder for analysing multiple stories for their network structures and creating general rules for a strucutre generator based of named entity recognition and bias to locations or people - The extreme long way")
970
 
 
1020
  """ + display_tipsupdatedconfigatbeinningofthisspace + """
1021
  </div>
1022
  </div>""")
1023
+ with gr.Tab("Themes and Topics"):
1024
+ gr.HTML("https://en.wikipedia.org/wiki/History#Periods https://en.wikipedia.org/wiki/Philosophy")
1025
  with gr.Tab("Old Ideas to merge"):
1026
  gr.HTML("Random Scenario / Song to 'full game' manual or auto is end goal ")
1027
  gr.HTML("Componets (outside Code Support for Config): Decisions (and context explanation), Nested Sections, Media (Especially to affect decisions), Replayability (GTA and Tekken type mechanics in text form), Theme integration (Modified Varibles that affect UI or config order)")
relatively_constant_variables.py CHANGED
@@ -2422,6 +2422,176 @@ Interconnectedness: The graph visually demonstrates how each location, narrative
2422
 
2423
  )
2424
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2425
 
2426
  #-------------------------#-------------------------#-------------------------#-------------------------
2427
 
 
2422
 
2423
  )
2424
 
2425
+ TimeRelatedMermaidStoryAttempttoRefinefromtoJSON = (
2426
+ """
2427
+ {
2428
+ "masterlocation1": {
2429
+ "location1": {
2430
+ "description": "The Old Oak Library",
2431
+ "events": [
2432
+ "Sarah discovers an ancient book about the town's lore and hidden history."
2433
+ ],
2434
+ "choices": [
2435
+ "continue"
2436
+ ],
2437
+ "transitions": {
2438
+ "continue": "masterlocation1_location2"
2439
+ },
2440
+ "media": [],
2441
+ "developernotes": [
2442
+ "This is the starting point of Sarah's journey (A1 in Actual Timeline)"
2443
+ ]
2444
+ },
2445
+ "location2": {
2446
+ "description": "The Riverside Café",
2447
+ "events": [
2448
+ "Sarah overhears a conversation about a tragic event in the town's history.",
2449
+ "She learns about a long-lost love and betrayal."
2450
+ ],
2451
+ "choices": [
2452
+ "confront patrons",
2453
+ "continue exploring"
2454
+ ],
2455
+ "transitions": {
2456
+ "confront patrons": "masterlocation2_location1",
2457
+ "continue exploring": "masterlocation1_location3"
2458
+ },
2459
+ "media": [],
2460
+ "developernotes": [
2461
+ "This location appears in both A2 (Actual Timeline) and N1 (Narrative Timeline)"
2462
+ ]
2463
+ },
2464
+ "location3": {
2465
+ "description": "The Abandoned Mill",
2466
+ "events": [
2467
+ "Sarah discovers old photographs, letters, and a diary hinting at a hidden romance."
2468
+ ],
2469
+ "choices": [
2470
+ "continue"
2471
+ ],
2472
+ "transitions": {
2473
+ "continue": "masterlocation1_location4"
2474
+ },
2475
+ "media": [],
2476
+ "developernotes": [
2477
+ "This location is A3 in the Actual Timeline"
2478
+ ]
2479
+ },
2480
+ "location4": {
2481
+ "description": "The Clock Tower",
2482
+ "events": [
2483
+ "Sarah learns about a secret society that protected the town's secrets."
2484
+ ],
2485
+ "choices": [
2486
+ "investigate further",
2487
+ "return to library"
2488
+ ],
2489
+ "transitions": {
2490
+ "investigate further": "masterlocation2_location2",
2491
+ "return to library": "masterlocation2_location3"
2492
+ },
2493
+ "media": [],
2494
+ "developernotes": [
2495
+ "This is A4 in the Actual Timeline and leads to N2 in the Narrative Timeline"
2496
+ ]
2497
+ }
2498
+ },
2499
+ "masterlocation2": {
2500
+ "location1": {
2501
+ "description": "The Riverside Café - Confrontation",
2502
+ "events": [
2503
+ "Sarah confronts the patrons about their conversation.",
2504
+ "She learns that the tragic love story involves her great-grandparents."
2505
+ ],
2506
+ "choices": [
2507
+ "continue"
2508
+ ],
2509
+ "transitions": {
2510
+ "continue": "masterlocation2_location2"
2511
+ },
2512
+ "media": [],
2513
+ "developernotes": [
2514
+ "This is N1 in the Narrative Timeline"
2515
+ ]
2516
+ },
2517
+ "location2": {
2518
+ "description": "The Clock Tower - Hidden Room",
2519
+ "events": [
2520
+ "Sarah discovers a hidden room with documents about the secret society.",
2521
+ "She finds a letter addressed to her great-grandmother from her great-grandfather."
2522
+ ],
2523
+ "choices": [
2524
+ "continue"
2525
+ ],
2526
+ "transitions": {
2527
+ "continue": "masterlocation2_location3"
2528
+ },
2529
+ "media": [],
2530
+ "developernotes": [
2531
+ "This is N2 in the Narrative Timeline"
2532
+ ]
2533
+ },
2534
+ "location3": {
2535
+ "description": "The Old Oak Library - Piecing Together History",
2536
+ "events": [
2537
+ "Sarah connects her family's history to the town's changes.",
2538
+ "She learns about the establishment of the secret society."
2539
+ ],
2540
+ "choices": [
2541
+ "continue"
2542
+ ],
2543
+ "transitions": {
2544
+ "continue": "masterlocation2_location4"
2545
+ },
2546
+ "media": [],
2547
+ "developernotes": [
2548
+ "This is N3 in the Narrative Timeline"
2549
+ ]
2550
+ },
2551
+ "location4": {
2552
+ "description": "The Abandoned Mill - Uncovering the Truth",
2553
+ "events": [
2554
+ "Sarah re-reads the diary and discovers the truth about the betrayal.",
2555
+ "She realizes it was a misunderstanding fueled by jealousy and miscommunication."
2556
+ ],
2557
+ "choices": [
2558
+ "reflect on journey"
2559
+ ],
2560
+ "transitions": {
2561
+ "reflect on journey": "masterlocation3_location1"
2562
+ },
2563
+ "media": [],
2564
+ "developernotes": [
2565
+ "This is N4 in the Narrative Timeline"
2566
+ ]
2567
+ }
2568
+ },
2569
+ "masterlocation3": {
2570
+ "location1": {
2571
+ "description": "Hidden Timeline Revelations",
2572
+ "events": [
2573
+ "The original betrayal that caused the rift between Sarah's great-grandparents is revealed.",
2574
+ "The formation of the secret society to protect the town is uncovered.",
2575
+ "The existence of the lost letter from Sarah's great-grandfather is discovered.",
2576
+ "The truth about the carefully curated town lore is exposed."
2577
+ ],
2578
+ "choices": [
2579
+ "conclude journey"
2580
+ ],
2581
+ "transitions": {
2582
+ "conclude journey": "end"
2583
+ },
2584
+ "media": [],
2585
+ "developernotes": [
2586
+ "This represents the Hidden Timeline (H1, H2, H3, H4)",
2587
+ "These events are not directly experienced but are revealed through Sarah's discoveries"
2588
+ ]
2589
+ }
2590
+ }
2591
+ }
2592
+ """,
2593
+ )
2594
+
2595
 
2596
  #-------------------------#-------------------------#-------------------------#-------------------------
2597