kwabs22 commited on
Commit
9c26e86
·
1 Parent(s): 142dcfb

More Config Ideas

Browse files
Files changed (1) hide show
  1. app.py +62 -28
app.py CHANGED
@@ -703,9 +703,26 @@ with gr.Blocks() as demo:
703
  imagegenspacebtn = gr.Button("Use the chosen URL to load interface with a image generation model")
704
  imagegenspace = gr.HTML("Chat Space Chosen will load here")
705
  imagegenspacebtn.click(display_website, inputs=linktoimagegen, outputs=imagegenspace)
 
 
 
 
 
 
706
 
707
  with gr.Accordion("Config Crafting Progression - click to open", open=False):
708
- gr.HTML("Example of how to advance a game config with LLM - end goal is to have automatic worflow that takes these considerations into account <br> Things missing from the game engine - Economics and Basic Politics (NPC affiliation)")
 
 
 
 
 
 
 
 
 
 
 
709
  originalconfigatbeinningofthisspace = """{
710
  "village": {
711
  "start": {
@@ -1221,24 +1238,26 @@ Would you like me to elaborate on any of these ideas or show how to implement th
1221
  },
1222
  }
1223
  }"""
1224
- gr.HTML("Suggestions from claude 3.5 on how to change config")
1225
- display_originalconfigatbeinningofthisspace = originalconfigatbeinningofthisspace.replace(' ', '&nbsp;').replace('\n', '<br>')
1226
- display_claude3_5_06072024configtips = claude3_5_06072024configtips.replace(' ', '&nbsp;').replace('\n', '<br>')
1227
- display_tipsupdatedconfigatbeinningofthisspace = tipsupdatedconfigatbeinningofthisspace.replace(' ', '&nbsp;').replace('\n', '<br>')
1228
- gr.HTML("""<div style="display: flex; justify-content: space-between; height: 900px; overflow: auto; ">
1229
- <div style="flex: 1; margin: 0 10px; padding: 20px;">
1230
- """ + display_originalconfigatbeinningofthisspace + """
1231
- </div>
1232
- <div style="flex: 1; margin: 0 10px; padding: 20px; width: 50%">
1233
- """ + display_claude3_5_06072024configtips + """
1234
- </div>
1235
- <div style="flex: 1; margin: 0 10px; padding: 20px;">
1236
- """ + display_tipsupdatedconfigatbeinningofthisspace + """
1237
- </div>
1238
- </div>""")
 
 
1239
 
1240
  with gr.Tab("Test and Edit Config"):
1241
- gr.HTML("The main issue is frequent changes add more chances for bugs in how ")
1242
  with gr.Tab("Full Manual - Test Example State Machine"):
1243
  with gr.Tab("Config Without Assets"):
1244
  with gr.Row():
@@ -1431,13 +1450,17 @@ Would you like me to elaborate on any of these ideas or show how to implement th
1431
  gr.HTML("Player Stats, Inventory and NPCS not implemented yet, so traversal type games best aka graph like structures <br> Game is like a universal translator so any concept can be covered")
1432
 
1433
  with gr.Tab("Asset Generation Considerations"):
1434
- gr.HTML("With some ideas from gemini-1.5-flash-api-0514 and reka-flash-preview-20240611 <br><br>Licenses for the spaces still to be evaluated")
1435
 
1436
  with gr.Tab("Save files"):
1437
  gr.HTML("For Dynamic events overnight or when player is not active what can LLMS edit? <br><br>eg. Waiting for a letter from a random npc can be decided by the llm <br>eg. Improved Stats on certain days (eg. bitrthday) <br>Privacy <br>User Directed DLC eg. Rockstar Editor with local llm guide")
1438
  gr.HTML("Some ideas - In game websites eg. GTA esp stock markets, news; ")
1439
  gr.HTML("Placeholder for huggingface spaces that can assist - https://huggingface.co/nvidia/Nemotron-4-340B-Instruct (Purpose is supposed to be synthetic data generation), https://huggingface.co/spaces/gokaygokay/Gemma-2-llamacpp ")
1440
  gr.HTML("Placeholder for models small enough to run on cpu here in this space that can assist (9b and under) <br>initial floor for testing can be https://huggingface.co/spaces/Qwen/Qwen2-0.5B-Instruct, https://huggingface.co/spaces/Qwen/Qwen2-1.5b-instruct-demo, https://huggingface.co/spaces/stabilityai/stablelm-2-1_6b-zephyr, https://huggingface.co/spaces/IndexTeam/Index-1.9B, https://huggingface.co/microsoft/Phi-3-mini-4k-instruct")
 
 
 
 
1441
 
1442
  with gr.Tab("Images"):
1443
  gr.HTML("Concept Art, UI elements, Static/3D Characters, Environments and Objects")
@@ -1445,23 +1468,30 @@ Would you like me to elaborate on any of these ideas or show how to implement th
1445
  gr.HTML("Images Generation Portraits = https://huggingface.co/spaces/okaris/omni-zero")
1446
  gr.HTML("Images Generation General = https://huggingface.co/spaces/stabilityai/stable-diffusion-3-medium, https://huggingface.co/spaces/PixArt-alpha/PixArt-Sigma, https://huggingface.co/spaces/stabilityai/stable-diffusion, https://www.craiyon.com/, https://huggingface.co/spaces/prodia/sdxl-stable-diffusion-xl")
1447
  gr.HTML("Images Generation Posters with text - https://huggingface.co/spaces/GlyphByT5/Glyph-SDXL-v2")
1448
- gr.HTML("Images Generation Very Specific position and shape - https://huggingface.co/spaces/linoyts/scribble-sdxl-flash")
1449
- gr.HTML("SVG Generation = Coding models - ")
 
 
 
1450
  gr.HTML("Vision Models for descriptions <br> https://huggingface.co/spaces/gokaygokay/Florence-2 <br>https://huggingface.co/spaces/vilarin/VL-Chatbox - glm 4v 9b <br>")
1451
  gr.HTML("Upscalers (save data transfer costs? highly detailed characters?) - https://huggingface.co/spaces/gokaygokay/AuraSR")
1452
  gr.HTML("Placeholder for huggingface spaces that can assist ")
1453
  gr.HTML("Placeholder for models small enough to run on cpu here in this space that can assist")
1454
-
1455
- with gr.Tab("Audio"):
1456
- gr.HTML("Music - Background, Interactive, Cutscene, Menu <br>Sound Effects - Environment, character, action (environmental triggered by user eg. gun), UI <br>Speech - Dialouge, narration, voiceover <br>The new render function means the Config can be made and iframe/api functions can be ordered as neccessary based on the part of the config that needs it to streamline workflows based on current state of config ")
1457
- gr.HTML("Placeholder for huggingface spaces that can assist")
1458
- gr.HTML("Audio Sound Effects - https://huggingface.co/spaces/artificialguybr/Stable-Audio-Open-Zero")
1459
- gr.HTML("Placeholder for models small enough to run on cpu here in this space that can assist")
1460
 
1461
  with gr.Tab("Video"):
1462
  gr.HTML("Cutscenes, Tutorials, Trailers")
 
1463
  gr.HTML("Placeholder for huggingface spaces that can assist - https://huggingface.co/spaces/KingNish/Instant-Video, https://huggingface.co/spaces/multimodalart/stable-video-diffusion, https://huggingface.co/spaces/multimodalart/stable-video-diffusion")
1464
  gr.HTML("Placeholder for models small enough to run on cpu here in this space that can assist")
 
 
 
 
 
 
 
 
 
1465
 
1466
  with gr.Tab("3D"):
1467
  gr.HTML("Characters, Environments, Objects")
@@ -1492,6 +1522,9 @@ Would you like me to elaborate on any of these ideas or show how to implement th
1492
  with gr.Tab("Basic Game Engine Mechanics"):
1493
  gr.HTML("Placeholder for explanations")
1494
 
 
 
 
1495
  with gr.Tab("Custom JS Config Creator"):
1496
  gr.HTML("-- Incomplete -- Companion Space for zerogpu / client api workflow planning for a way to send a zip to the Basic Game Engine at the bottom of https://huggingface.co/spaces/KwabsHug/TestSvelteStatic (Also to test how much can be done majority on cpu)")
1497
  with gr.Tab("Simple Config Creator"):
@@ -1566,9 +1599,10 @@ Would you like me to elaborate on any of these ideas or show how to implement th
1566
  with gr.Tab("Advanced Config Creator"):
1567
  gr.HTML("Config with More than text and images")
1568
 
1569
- with gr.Tab("LLM as custom controllers Considerations"):
1570
  gr.HTML("Controls changed the scope of the game eg. mouse vs keyboard vs console controller vs remote vs touch screen <br>LLM can be vision/surveilance based controler (eg. MGS/GTA camera gauged by an actual camera in real life) or it can be a companion (offline/off console game progrssion ideas)")
1571
-
 
1572
  with gr.Tab("Other Considerations"):
1573
  with gr.Tab("General"):
1574
  gr.HTML("Experiment for https://huggingface.co/spaces/ysharma/open-interpreter/blob/main/app.py inplementation with gradio client api")
 
703
  imagegenspacebtn = gr.Button("Use the chosen URL to load interface with a image generation model")
704
  imagegenspace = gr.HTML("Chat Space Chosen will load here")
705
  imagegenspacebtn.click(display_website, inputs=linktoimagegen, outputs=imagegenspace)
706
+ with gr.Accordion("3D Model Spaces/Sites (Click Here to Open) - Image to Blender?", open=False):
707
+ with gr.Row():
708
+ linktoThreedModel = gr.Dropdown(choices=["https://tencentarc-instantmesh.hf.space", "https://ashawkey-lgm.hf.space", "https://dylanebert-lgm-mini.hf.space", "https://dylanebert-splat-to-mesh.hf.space", "https://dylanebert-multi-view-diffusion.hf.space"], label="Choose/Cancel type any .hf.space link here (can also type a link)'", allow_custom_value=True)
709
+ ThreedModelspacebtn = gr.Button("Use the chosen URL to load interface with a 3D model")
710
+ ThreedModelspace = gr.HTML("3D Space Chosen will load here")
711
+ ThreedModelspacebtn.click(display_website, inputs=linktoThreedModel, outputs=ThreedModelspace)
712
 
713
  with gr.Accordion("Config Crafting Progression - click to open", open=False):
714
+ with gr.Tab("Main areas of considerations"):
715
+ with gr.Tab("Mermaid Graphs and Nesting"):
716
+ gr.HTML("<iframe src='https://claude.site/artifacts/265e9242-2093-46e1-9011-ed6ad938be90?fullscreen=false' width='100%' height='1000px'></iframe>")
717
+ gr.HTML("")
718
+ with gr.Tab(""):
719
+ gr.HTML("")
720
+ with gr.Tab("Structural Inspirations"):
721
+ gr.HTML("GTA Heists ")
722
+ gr.HTML("Sports Scores, ")
723
+ with gr.Tab("Themes"):
724
+ gr.HTML("")
725
+
726
  originalconfigatbeinningofthisspace = """{
727
  "village": {
728
  "start": {
 
1238
  },
1239
  }
1240
  }"""
1241
+ with gr.Tab("Improvement of the default config"):
1242
+ gr.HTML("Example of how to advance a game config with LLM - end goal is to have automatic worflow that takes these considerations into account <br> Things missing from the game engine - Economics and Basic Politics (NPC affiliation)")
1243
+ gr.HTML("Suggestions from claude 3.5 on how to change config")
1244
+ display_originalconfigatbeinningofthisspace = originalconfigatbeinningofthisspace.replace(' ', '&nbsp;').replace('\n', '<br>')
1245
+ display_claude3_5_06072024configtips = claude3_5_06072024configtips.replace(' ', '&nbsp;').replace('\n', '<br>')
1246
+ display_tipsupdatedconfigatbeinningofthisspace = tipsupdatedconfigatbeinningofthisspace.replace(' ', '&nbsp;').replace('\n', '<br>')
1247
+ gr.HTML("""<div style="display: flex; justify-content: space-between; height: 900px; overflow: auto; ">
1248
+ <div style="flex: 1; margin: 0 10px; padding: 20px;">
1249
+ """ + display_originalconfigatbeinningofthisspace + """
1250
+ </div>
1251
+ <div style="flex: 1; margin: 0 10px; padding: 20px; width: 50%">
1252
+ """ + display_claude3_5_06072024configtips + """
1253
+ </div>
1254
+ <div style="flex: 1; margin: 0 10px; padding: 20px;">
1255
+ """ + display_tipsupdatedconfigatbeinningofthisspace + """
1256
+ </div>
1257
+ </div>""")
1258
 
1259
  with gr.Tab("Test and Edit Config"):
1260
+ gr.HTML("The main issue is frequent changes add more chances for bugs in how - manual and auto refer mainly to ensuring correct JSON format ")
1261
  with gr.Tab("Full Manual - Test Example State Machine"):
1262
  with gr.Tab("Config Without Assets"):
1263
  with gr.Row():
 
1450
  gr.HTML("Player Stats, Inventory and NPCS not implemented yet, so traversal type games best aka graph like structures <br> Game is like a universal translator so any concept can be covered")
1451
 
1452
  with gr.Tab("Asset Generation Considerations"):
1453
+ gr.HTML("With some asset category ideas from gemini-1.5-flash-api-0514 and reka-flash-preview-20240611 <br><br>Licenses for the spaces still to be evaluated - June 2024")
1454
 
1455
  with gr.Tab("Save files"):
1456
  gr.HTML("For Dynamic events overnight or when player is not active what can LLMS edit? <br><br>eg. Waiting for a letter from a random npc can be decided by the llm <br>eg. Improved Stats on certain days (eg. bitrthday) <br>Privacy <br>User Directed DLC eg. Rockstar Editor with local llm guide")
1457
  gr.HTML("Some ideas - In game websites eg. GTA esp stock markets, news; ")
1458
  gr.HTML("Placeholder for huggingface spaces that can assist - https://huggingface.co/nvidia/Nemotron-4-340B-Instruct (Purpose is supposed to be synthetic data generation), https://huggingface.co/spaces/gokaygokay/Gemma-2-llamacpp ")
1459
  gr.HTML("Placeholder for models small enough to run on cpu here in this space that can assist (9b and under) <br>initial floor for testing can be https://huggingface.co/spaces/Qwen/Qwen2-0.5B-Instruct, https://huggingface.co/spaces/Qwen/Qwen2-1.5b-instruct-demo, https://huggingface.co/spaces/stabilityai/stablelm-2-1_6b-zephyr, https://huggingface.co/spaces/IndexTeam/Index-1.9B, https://huggingface.co/microsoft/Phi-3-mini-4k-instruct")
1460
+ with gr.Tab("Diagrams"):
1461
+ gr.HTML("Claude 3.5 sonnet is very good with mermaid graphs - can used for maps, situational explanations")
1462
+ with gr.Tab("Maths"):
1463
+ gr.HTML("https://huggingface.co/spaces/AI-MO/math-olympiad-solver")
1464
 
1465
  with gr.Tab("Images"):
1466
  gr.HTML("Concept Art, UI elements, Static/3D Characters, Environments and Objects")
 
1468
  gr.HTML("Images Generation Portraits = https://huggingface.co/spaces/okaris/omni-zero")
1469
  gr.HTML("Images Generation General = https://huggingface.co/spaces/stabilityai/stable-diffusion-3-medium, https://huggingface.co/spaces/PixArt-alpha/PixArt-Sigma, https://huggingface.co/spaces/stabilityai/stable-diffusion, https://www.craiyon.com/, https://huggingface.co/spaces/prodia/sdxl-stable-diffusion-xl")
1470
  gr.HTML("Images Generation Posters with text - https://huggingface.co/spaces/GlyphByT5/Glyph-SDXL-v2")
1471
+ gr.HTML("Images Generation Very Specific position and shape - https://huggingface.co/spaces/linoyts/scribble-sdxl-flash, https://huggingface.co/spaces/InstantX/InstantID (more of a scpaceoooo)")
1472
+ gr.HTML("Images Generation Non-english prompt support = Chinese - https://huggingface.co/spaces/gokaygokay/Kolors")
1473
+ gr.HTML("Images Generation - Change pose of the image but keep face https://huggingface.co/spaces/InstantX/InstantID")
1474
+ gr.HTML("SVG Generation = Coding models / SOTA LLM ")
1475
+ gr.HTML("Images Generation - Upscaling - https://huggingface.co/spaces/gokaygokay/Tile-Upscaler")
1476
  gr.HTML("Vision Models for descriptions <br> https://huggingface.co/spaces/gokaygokay/Florence-2 <br>https://huggingface.co/spaces/vilarin/VL-Chatbox - glm 4v 9b <br>")
1477
  gr.HTML("Upscalers (save data transfer costs? highly detailed characters?) - https://huggingface.co/spaces/gokaygokay/AuraSR")
1478
  gr.HTML("Placeholder for huggingface spaces that can assist ")
1479
  gr.HTML("Placeholder for models small enough to run on cpu here in this space that can assist")
 
 
 
 
 
 
1480
 
1481
  with gr.Tab("Video"):
1482
  gr.HTML("Cutscenes, Tutorials, Trailers")
1483
+ gr.HTML("Portrait Video eg. Solo Taking NPC - https://huggingface.co/spaces/fffiloni/tts-hallo-talking-portrait (Image + Audio and combination) https://huggingface.co/spaces/KwaiVGI/LivePortrait (Non verbal communication eg. in a library, when running from a pursuer)")
1484
  gr.HTML("Placeholder for huggingface spaces that can assist - https://huggingface.co/spaces/KingNish/Instant-Video, https://huggingface.co/spaces/multimodalart/stable-video-diffusion, https://huggingface.co/spaces/multimodalart/stable-video-diffusion")
1485
  gr.HTML("Placeholder for models small enough to run on cpu here in this space that can assist")
1486
+ gr.HTML("3rd Party / Closed Source - https://runwayml.com/ <br>")
1487
+
1488
+ with gr.Tab("Audio"):
1489
+ gr.HTML("Music - Background, Interactive, Cutscene, Menu <br>Sound Effects - Environment, character, action (environmental triggered by user eg. gun), UI <br>Speech - Dialouge, narration, voiceover <br>The new render function means the Config can be made and iframe/api functions can be ordered as neccessary based on the part of the config that needs it to streamline workflows based on current state of config ")
1490
+ gr.HTML("Placeholder for huggingface spaces that can assist")
1491
+ gr.HTML("Audio Sound Effects - https://huggingface.co/spaces/artificialguybr/Stable-Audio-Open-Zero")
1492
+ gr.HTML("Voices - Voice clone eg. actors part of your project - https://huggingface.co/spaces/tonyassi/voice-clone")
1493
+ gr.HTML("Placeholder for models small enough to run on cpu here in this space that can assist")
1494
+ gr.HTML("3rd Party / Closed Source - https://suno.com/ <br>https://www.udio.com/")
1495
 
1496
  with gr.Tab("3D"):
1497
  gr.HTML("Characters, Environments, Objects")
 
1522
  with gr.Tab("Basic Game Engine Mechanics"):
1523
  gr.HTML("Placeholder for explanations")
1524
 
1525
+ with gr.Tab("LLM play testing"):
1526
+ gr.HTML("LLM can read the contents in full and give critiques but they can also play the game if you make a api interface - gradio allows this in the form of gradio client but you can also reroute the user inputs to function calling")
1527
+
1528
  with gr.Tab("Custom JS Config Creator"):
1529
  gr.HTML("-- Incomplete -- Companion Space for zerogpu / client api workflow planning for a way to send a zip to the Basic Game Engine at the bottom of https://huggingface.co/spaces/KwabsHug/TestSvelteStatic (Also to test how much can be done majority on cpu)")
1530
  with gr.Tab("Simple Config Creator"):
 
1599
  with gr.Tab("Advanced Config Creator"):
1600
  gr.HTML("Config with More than text and images")
1601
 
1602
+ with gr.Tab("LLM/Robotics as custom controllers Considerations"):
1603
  gr.HTML("Controls changed the scope of the game eg. mouse vs keyboard vs console controller vs remote vs touch screen <br>LLM can be vision/surveilance based controler (eg. MGS/GTA camera gauged by an actual camera in real life) or it can be a companion (offline/off console game progrssion ideas)")
1604
+ gr.HTML("")
1605
+
1606
  with gr.Tab("Other Considerations"):
1607
  with gr.Tab("General"):
1608
  gr.HTML("Experiment for https://huggingface.co/spaces/ysharma/open-interpreter/blob/main/app.py inplementation with gradio client api")