Spaces:
Sleeping
Sleeping
kwabs22
commited on
Commit
·
142dcfb
1
Parent(s):
b45166d
more config stuff
Browse files
app.py
CHANGED
@@ -704,7 +704,7 @@ with gr.Blocks() as demo:
|
|
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
|
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": {
|
@@ -796,9 +796,9 @@ with gr.Blocks() as demo:
|
|
796 |
#Analyzing Game Configuration Metrics - was the thread name of where the
|
797 |
claude3_5_06072024configtips = """Example Config Development Tab - Claude 3.5 Sonnet as the LLM Assitant
|
798 |
|
799 |
-
This config is for a basic text based game engine I made with help many llms including you.
|
800 |
-
|
801 |
-
|
802 |
|
803 |
|
804 |
Text-Based Game Configuration Analysis
|
@@ -1221,26 +1221,15 @@ Would you like me to elaborate on any of these ideas or show how to implement th
|
|
1221 |
},
|
1222 |
}
|
1223 |
}"""
|
1224 |
-
gr.HTML("
|
1225 |
-
# with gr.Row():
|
1226 |
-
# with gr.Column(scale=1):
|
1227 |
display_originalconfigatbeinningofthisspace = originalconfigatbeinningofthisspace.replace(' ', ' ').replace('\n', '<br>')
|
1228 |
-
#display_originalconfigatbeinningofthisspace = json.loads(originalconfigatbeinningofthisspace)
|
1229 |
-
# gr.HTML(f"<pre style='font-size: 6px;'>{display_originalconfigatbeinningofthisspace}</pre>")
|
1230 |
-
#gr.Code(value=json.dumps(originalconfigatbeinningofthisspace, indent=2), language="json") #originalconfigatbeinningofthisspace)
|
1231 |
-
# with gr.Column(scale=2):
|
1232 |
display_claude3_5_06072024configtips = claude3_5_06072024configtips.replace(' ', ' ').replace('\n', '<br>')
|
1233 |
-
# gr.HTML(f"<pre style='font-size: 6px;'>{display_claude3_5_06072024configtips}</pre>")
|
1234 |
-
# with gr.Column(scale=1):
|
1235 |
display_tipsupdatedconfigatbeinningofthisspace = tipsupdatedconfigatbeinningofthisspace.replace(' ', ' ').replace('\n', '<br>')
|
1236 |
-
|
1237 |
-
# gr.HTML(f"<pre style='font-size: 6px;'>{display_tipsupdatedconfigatbeinningofthisspace}</pre>")
|
1238 |
-
#gr.Code(value=json.dumps(display_tipsupdatedconfigatbeinningofthisspace, indent=2), language="json")
|
1239 |
-
gr.HTML("""<div style="display: flex; justify-content: space-between; overflow-x: auto;">
|
1240 |
<div style="flex: 1; margin: 0 10px; padding: 20px;">
|
1241 |
""" + display_originalconfigatbeinningofthisspace + """
|
1242 |
</div>
|
1243 |
-
<div style="flex: 1; margin: 0 10px; padding: 20px;">
|
1244 |
""" + display_claude3_5_06072024configtips + """
|
1245 |
</div>
|
1246 |
<div style="flex: 1; margin: 0 10px; padding: 20px;">
|
@@ -1496,10 +1485,13 @@ Would you like me to elaborate on any of these ideas or show how to implement th
|
|
1496 |
gr.HTML("Placeholder for huggingface spaces that can assist - https://huggingface.co/spaces/EPFL-VILAB/4M, https://huggingface.co/spaces/EPFL-VILAB/MultiMAE ")
|
1497 |
gr.HTML("Placeholder for models small enough to run on cpu here in this space that can assist")
|
1498 |
|
1499 |
-
with gr.Tab():
|
1500 |
gr.HTML("Social media that shows possiblities")
|
1501 |
gr.HTML("https://x.com/blizaine")
|
1502 |
|
|
|
|
|
|
|
1503 |
with gr.Tab("Custom JS Config Creator"):
|
1504 |
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)")
|
1505 |
with gr.Tab("Simple Config Creator"):
|
|
|
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": {
|
|
|
796 |
#Analyzing Game Configuration Metrics - was the thread name of where the
|
797 |
claude3_5_06072024configtips = """Example Config Development Tab - Claude 3.5 Sonnet as the LLM Assitant
|
798 |
|
799 |
+
This config is for a basic text based game engine I made with help many llms including you.
|
800 |
+
Thanks to all the help it loads which presented another problem, I dont have any structural metrics to assess the quality of the config.
|
801 |
+
What JSON things can we look at to see if it may be too bland for a person testing the game
|
802 |
|
803 |
|
804 |
Text-Based Game Configuration Analysis
|
|
|
1221 |
},
|
1222 |
}
|
1223 |
}"""
|
1224 |
+
gr.HTML("Suggestions from claude 3.5 on how to change config")
|
|
|
|
|
1225 |
display_originalconfigatbeinningofthisspace = originalconfigatbeinningofthisspace.replace(' ', ' ').replace('\n', '<br>')
|
|
|
|
|
|
|
|
|
1226 |
display_claude3_5_06072024configtips = claude3_5_06072024configtips.replace(' ', ' ').replace('\n', '<br>')
|
|
|
|
|
1227 |
display_tipsupdatedconfigatbeinningofthisspace = tipsupdatedconfigatbeinningofthisspace.replace(' ', ' ').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;">
|
|
|
1485 |
gr.HTML("Placeholder for huggingface spaces that can assist - https://huggingface.co/spaces/EPFL-VILAB/4M, https://huggingface.co/spaces/EPFL-VILAB/MultiMAE ")
|
1486 |
gr.HTML("Placeholder for models small enough to run on cpu here in this space that can assist")
|
1487 |
|
1488 |
+
with gr.Tab("Demos on Social Media for inspiration"):
|
1489 |
gr.HTML("Social media that shows possiblities")
|
1490 |
gr.HTML("https://x.com/blizaine")
|
1491 |
|
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"):
|