Spaces:
Running
on
Zero
Running
on
Zero
kwabs22
commited on
Commit
•
33582fc
1
Parent(s):
198db95
More considerations
Browse files- README.md +0 -2
- app.py +18 -7
- relatively_constant_variables.py +1 -1
README.md
CHANGED
@@ -8,8 +8,6 @@ sdk_version: 4.36.1
|
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
short_description: Experimental workflow for story driven games and porting
|
11 |
-
models:
|
12 |
-
- Qwen/Qwen2-0.5B-Instruct
|
13 |
---
|
14 |
|
15 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
short_description: Experimental workflow for story driven games and porting
|
|
|
|
|
11 |
---
|
12 |
|
13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
CHANGED
@@ -977,7 +977,7 @@ with gr.Blocks() as demo:
|
|
977 |
with gr.Accordion("Config and Asset Assistance - Click to open", open=False):
|
978 |
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")
|
979 |
with gr.Accordion("Leaveraging LLMs"):
|
980 |
-
with gr.Tab("ZeroGPU"):
|
981 |
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")
|
982 |
gr.HTML("UI can be media and all items can have media")
|
983 |
with gr.Tab("Any Request to Qwen2-0.5B"):
|
@@ -1099,16 +1099,16 @@ with gr.Blocks() as demo:
|
|
1099 |
gr.Textbox(TimeRelatedMermaidStoryAttempttoRefinefrom[3], lines=30)
|
1100 |
gr.Textbox(TimeRelatedMermaidStoryAttempttoRefinefrom[4], lines=30)
|
1101 |
with gr.Tab("Story to (2) JSON (through LLM and fix JSON by hand)"):
|
1102 |
-
gr.HTML()
|
1103 |
gr.Code(WFStage2prompt , label="Prompt Used")
|
1104 |
-
with gr.Tab("Initial JSON (through LLM and fix JSON by hand) to (3)
|
1105 |
-
gr.Code("Lets a
|
1106 |
with gr.Tab("JSON Corrections (through LLM and fix JSON by hand) to (4) Media prompts"):
|
1107 |
gr.Code("Lets a make a list for the prompts we will use to make media objects in this JSON: ", label="prompt used")
|
1108 |
with gr.Tab("Media prompts to (5) Asset Generation"):
|
1109 |
-
gr.
|
|
|
1110 |
with gr.Tab("Asset Generation to (6) JSON Media field population"):
|
1111 |
-
gr.
|
1112 |
with gr.Tab("All Variations / Themes for entire workflow proccess - to be completed"):
|
1113 |
gr.HTML("Trying to abstract the process into one worflow is beyond me so multiple paths to goal (config) is the aim now")
|
1114 |
with gr.Tab("Branching - Decisions / Timeline Creation to Story to Config Conversation"):
|
@@ -1289,7 +1289,16 @@ Creating more diverse paths through the game""")
|
|
1289 |
gr.HTML("Sports Scores, ")
|
1290 |
with gr.Tab("Themes"):
|
1291 |
gr.HTML("")
|
1292 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1293 |
with gr.Row():
|
1294 |
with gr.Column(scale=1):
|
1295 |
gr.HTML("""Main End Goal is Rapid prototypes for education and training purposes eg. Degree of the future is game score <br><div style="width: 100%; text-align: center">A way to prototype basic non-3D parts of a game while trying to understand where models can streamline workflow</div>""")
|
@@ -1344,6 +1353,8 @@ Creating more diverse paths through the game""")
|
|
1344 |
for experimetal_config_name, experimetal_config in ExampleGameConfigs.items():
|
1345 |
with gr.Tab(experimetal_config_name):
|
1346 |
gr.Code(json.dumps(experimetal_config, default=lambda o: o.__dict__, indent=2), label=experimetal_config_name) #str(experimetal_config)
|
|
|
|
|
1347 |
with gr.Column(scale=5):
|
1348 |
with gr.Tab("Test and Edit Config"):
|
1349 |
with gr.Tab("Semi-Auto - Edit config while playing game"):
|
|
|
977 |
with gr.Accordion("Config and Asset Assistance - Click to open", open=False):
|
978 |
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")
|
979 |
with gr.Accordion("Leaveraging LLMs"):
|
980 |
+
with gr.Tab("ZeroGPU - Placeholder for now"):
|
981 |
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")
|
982 |
gr.HTML("UI can be media and all items can have media")
|
983 |
with gr.Tab("Any Request to Qwen2-0.5B"):
|
|
|
1099 |
gr.Textbox(TimeRelatedMermaidStoryAttempttoRefinefrom[3], lines=30)
|
1100 |
gr.Textbox(TimeRelatedMermaidStoryAttempttoRefinefrom[4], lines=30)
|
1101 |
with gr.Tab("Story to (2) JSON (through LLM and fix JSON by hand)"):
|
|
|
1102 |
gr.Code(WFStage2prompt , label="Prompt Used")
|
1103 |
+
with gr.Tab("Initial JSON (through LLM and fix JSON by hand) to (3) JSON Corrections (through LLM and fix JSON by hand)"):
|
1104 |
+
gr.Code("Lets a critique this JSON to find areas fix", label="prompt used")
|
1105 |
with gr.Tab("JSON Corrections (through LLM and fix JSON by hand) to (4) Media prompts"):
|
1106 |
gr.Code("Lets a make a list for the prompts we will use to make media objects in this JSON: ", label="prompt used")
|
1107 |
with gr.Tab("Media prompts to (5) Asset Generation"):
|
1108 |
+
gr.Code("For each Media item described classify it by media type and comment if in a story setting it would need timing ", label="prompt used")
|
1109 |
+
gr.HTML("This Step can be merged with the next if we can make a editor like in the semi-Auto space in test and edit tailored to just accepting the JSON and exposing only media part for editing")
|
1110 |
with gr.Tab("Asset Generation to (6) JSON Media field population"):
|
1111 |
+
gr.Code("Here is a list of file names - assume they are in the order of the empty media sections of the JSON and rewrite the JSON", label="prompt used")
|
1112 |
with gr.Tab("All Variations / Themes for entire workflow proccess - to be completed"):
|
1113 |
gr.HTML("Trying to abstract the process into one worflow is beyond me so multiple paths to goal (config) is the aim now")
|
1114 |
with gr.Tab("Branching - Decisions / Timeline Creation to Story to Config Conversation"):
|
|
|
1289 |
gr.HTML("Sports Scores, ")
|
1290 |
with gr.Tab("Themes"):
|
1291 |
gr.HTML("")
|
1292 |
+
|
1293 |
+
with gr.Tab("Current Engine Defects"):
|
1294 |
+
gr.HTML("All realtime events - Text still needs realtime as well")
|
1295 |
+
with gr.Tab("Inventory and Skill Support"):
|
1296 |
+
gr.HTML("Each decision affects Skills or inventory")
|
1297 |
+
with gr.Tab("NPC Support"):
|
1298 |
+
gr.HTML("Shared timeline that the player interfere with")
|
1299 |
+
with gr.Tab("Economics Support"):
|
1300 |
+
gr.HTML("Style Idea for a Basic Idea - Endless Economy (Tiny Tower as well) - Paperclip maximiser and inspirations - https://huggingface.co/spaces/osanseviero/TheMLGame")
|
1301 |
+
|
1302 |
with gr.Row():
|
1303 |
with gr.Column(scale=1):
|
1304 |
gr.HTML("""Main End Goal is Rapid prototypes for education and training purposes eg. Degree of the future is game score <br><div style="width: 100%; text-align: center">A way to prototype basic non-3D parts of a game while trying to understand where models can streamline workflow</div>""")
|
|
|
1353 |
for experimetal_config_name, experimetal_config in ExampleGameConfigs.items():
|
1354 |
with gr.Tab(experimetal_config_name):
|
1355 |
gr.Code(json.dumps(experimetal_config, default=lambda o: o.__dict__, indent=2), label=experimetal_config_name) #str(experimetal_config)
|
1356 |
+
|
1357 |
+
|
1358 |
with gr.Column(scale=5):
|
1359 |
with gr.Tab("Test and Edit Config"):
|
1360 |
with gr.Tab("Semi-Auto - Edit config while playing game"):
|
relatively_constant_variables.py
CHANGED
@@ -2237,7 +2237,7 @@ Interconnectedness: The graph visually demonstrates how each location, narrative
|
|
2237 |
|
2238 |
)
|
2239 |
|
2240 |
-
WFStage2prompt = """Please use the below config as a template to covert the story to config format:
|
2241 |
|
2242 |
{
|
2243 |
"masterlocation1": {
|
|
|
2237 |
|
2238 |
)
|
2239 |
|
2240 |
+
WFStage2prompt = """Please use the below config as a template to covert the story to config format (dont use the template values like masterlocation1):
|
2241 |
|
2242 |
{
|
2243 |
"masterlocation1": {
|