kwabs22 commited on
Commit
bffbbe1
·
1 Parent(s): 2d80691
Files changed (2) hide show
  1. app.py +37 -30
  2. relatively_constant_variables.py +14 -0
app.py CHANGED
@@ -803,7 +803,8 @@ with gr.Blocks() as demo:
803
  )
804
 
805
  with gr.Tab("Any Request to Qwen2-0.5B"):
806
- gr.HTML("Placeholder for https://huggingface.co/h2oai/h2o-danube3-500m-chat-GGUF as alternative")
 
807
  gr.HTML("Placeholder for qwen 2 72b as alternative use checkbox and gradio client api call")
808
  gr.Markdown("# Qwen-0.5B-Instruct Language Model")
809
  gr.Markdown("This demo uses the Qwen-0.5B-Instruct model to generate responses based on your input.")
@@ -827,17 +828,14 @@ with gr.Blocks() as demo:
827
 
828
  with gr.Accordion("Decisions / Timeline Creation to Story to Config Conversation", open=False):
829
  with gr.Tab("Structures for interesting timeline progression"):
830
- with gr.Tab("Some Example Structures and considerations"):
831
- gr.HTML("Placeholder - Considerations - Story from the perspective of Main character or NPC in the LLM genereated story")
832
- with gr.Accordion("Mermaid Structures - click to open", open=False):
833
- for key, item in mermaidstorystructures.items():
834
- gr.Code(item, label=key)
835
- #gr.Code(value=mermaidstorystructures['Parallel Storylines Progression'])
836
-
837
- with gr.Tab("Display or edit a mermaid structure"):
838
- mermaideditoriframebtn = gr.Button("Load Mermaid Editor")
839
- mermaideditoriframe = gr.HTML("")
840
- mermaideditoriframebtn.click(fn=lambda x: "<iframe src='https://mermaid.live/' width='100%' height='1000px'></iframe>", outputs=mermaideditoriframe)
841
  with gr.Tab("Timeline Guide for Config Generation or evelution"):
842
  with gr.Accordion("Empty Config shape for explaining to LLM", open=False):
843
  gr.HTML(f"placeholder for current empty JSON config shape")
@@ -1170,23 +1168,30 @@ Creating more diverse paths through the game""")
1170
 
1171
  with gr.Tab("Asset Generation Considerations"):
1172
  gr.HTML("Licenses for the spaces still to be evaluated - June 2024 <br> Users to follow with cool spaces - https://huggingface.co/jbilcke-hf, https://huggingface.co/dylanebert, https://huggingface.co/fffiloni, https://huggingface.co/artificialguybr, https://huggingface.co/radames, https://huggingface.co/multimodalart, ")
1173
-
1174
- with gr.Accordion("LLM HF Spaces/Sites (Click Here to Open) - Ask for a story and suggestions based on the autoconfig", open=False):
1175
- with gr.Row():
1176
- linktochat = gr.Dropdown(choices=["https://labs.perplexity.ai/", "https://chat.lmsys.org", "https://sdk.vercel.ai/docs", "https://gokaygokay-gemma-2-llamacpp.hf.space" "https://qwen-qwen-max-0428.hf.space", "https://cohereforai-c4ai-command-r-plus.hf.space", "https://huggingface.co/spaces/eswardivi/Phi-3-mini-128k-instruct", "https://eswardivi-phi-3-mini-4k-instruct.hf.space", "https://cyzgab-catch-me-if-you-can.hf.space", "https://snowflake-snowflake-arctic-st-demo.hf.space", "https://qwen-qwen1-5-110b-chat-demo.hf.space", "https://ysharma-chat-with-meta-llama3-8b.hf.space", "https://databricks-dbrx-instruct.hf.space", "https://qwen-qwen1-5-moe-a2-7b-chat-demo.hf.space", "https://cohereforai-c4ai-command-r-v01.hf.space", "https://ehristoforu-mixtral-46-7b-chat.hf.space", "https://stabilityai-stablelm-2-1-6b-zephyr.hf.space", "https://qwen-qwen1-5-72b-chat.hf.space", "https://deepseek-ai-deepseek-coder-7b-instruct.hf.space", "https://01-ai-yi-34b-chat.hf.space", "https://ysharma-zephyr-playground.hf.space", "https://huggingfaceh4-zephyr-chat.hf.space", "https://osanseviero-mistral-super-fast.hf.space", "https://artificialguybr-qwen-14b-chat-demo.hf.space", "https://huggingface-projects-llama-2-7b-chat.hf.space", "https://ysharma-explore-llamav2-with-tgi.hf.space", "https://mosaicml-mpt-30b-chat.hf.space", "https://huggingfaceh4-falcon-chat.hf.space", "https://uwnlp-guanaco-playground-tgi.hf.space", "https://stabilityai-stablelm-tuned-alpha-chat.hf.space", "https://mosaicml-mpt-7b-storywriter.hf.space", "https://huggingfaceh4-starchat-playground.hf.space", "https://bigcode-bigcode-playground.hf.space", "https://mosaicml-mpt-7b-chat.hf.space", "https://huggingchat-chat-ui.hf.space", "https://togethercomputer-openchatkit.hf.space"], label="Choose/Cancel type any .hf.space link here (can also type a link)'", allow_custom_value=True)
1177
- chatspacebtn = gr.Button("Use the chosen URL to load interface with a chat model. For sdk.vercel click the chat button on the top left. For lymsys / chat arena copy the link and use a new tab")
1178
- chatspace = gr.HTML("Chat Space Chosen will load here")
1179
- chatspacebtn.click(display_website, inputs=linktochat, outputs=chatspace)
1180
-
1181
- with gr.Tab("Save files"):
1182
- 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")
1183
- gr.HTML("Some ideas - In game websites eg. GTA esp stock markets, news; ")
1184
- 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 ")
1185
- 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")
1186
- with gr.Tab("Diagrams"):
1187
- gr.HTML("Claude 3.5 sonnet is very good with mermaid graphs - can used for maps, situational explanations")
1188
- with gr.Tab("Maths"):
1189
- gr.HTML("https://huggingface.co/spaces/AI-MO/math-olympiad-solver")
 
 
 
 
 
 
 
1190
 
1191
  with gr.Tab("Media Understanding"):
1192
  gr.HTML("NPC Response Engines? Camera, Shopkeeper, Companion, Enemies, etc.")
@@ -1384,6 +1389,8 @@ Creating more diverse paths through the game""")
1384
  with gr.Tab("General"):
1385
  gr.HTML("Experiment for https://huggingface.co/spaces/ysharma/open-interpreter/blob/main/app.py inplementation with gradio client api")
1386
 
 
 
1387
  gr.HTML("Useful Spaces and links: https://huggingface.co/spaces/artificialguybr/Stable-Audio-Open-Zero https://huggingface.co/spaces/stabilityai/TripoSR https://huggingface.co/spaces/wangfuyun/AnimateLCM-SVD https://huggingface.co/spaces/multimodalart/face-to-all https://huggingface.co/spaces/facebook/MusicGen https://huggingface.co/spaces/Doubiiu/tooncrafter")
1388
 
1389
  gr.HTML("langchain docs as awareness for alot of the integration use cases and providers that are possible - https://python.langchain.com/v0.2/docs/integrations/tools/")
@@ -1397,7 +1404,7 @@ Creating more diverse paths through the game""")
1397
  with gr.Tab("Finetuning options"):
1398
  gr.HTML("Price - https://openpipe.ai/pricing")
1399
  with gr.Tab("Backend and/or Hosting?"):
1400
- gr.HTML("Deployemnt options - https://huggingface.co/SpacesExamples")
1401
  gr.HTML("Prototyping and freemium <br>free api <br>HF Pro subscription")
1402
  gr.HTML("GPU (Data privacy) = No Rate limits? - https://replicate.com/pricing, https://lambdalabs.com/service/gpu-cloud https://huggingface.co/pricing#endpoints https://tensordock.com/cloud-gpus")
1403
  gr.HTML("Speed - Groq, SambaNova, https://www.etched.com/announcing-etched ")
 
803
  )
804
 
805
  with gr.Tab("Any Request to Qwen2-0.5B"):
806
+ gr.HTML("Placeholder for https://huggingface.co/h2oai/h2o-danube3-500m-chat-GGUF and https://huggingface.co/OuteAI/Lite-Mistral-150M-v2-Instruct as alternative")
807
+ gr.HTML("https://huggingface.co/spaces/HuggingFaceTB/SmolLM-135M-Instruct-WebGPU 125 mdeol to be tested as alternative (and all up to 1.5b - how to delte a model in your code?) - Need to go over the dataset to see how to prompt it - https://huggingface.co/datasets/HuggingFaceTB/smollm-corpus ")
808
  gr.HTML("Placeholder for qwen 2 72b as alternative use checkbox and gradio client api call")
809
  gr.Markdown("# Qwen-0.5B-Instruct Language Model")
810
  gr.Markdown("This demo uses the Qwen-0.5B-Instruct model to generate responses based on your input.")
 
828
 
829
  with gr.Accordion("Decisions / Timeline Creation to Story to Config Conversation", open=False):
830
  with gr.Tab("Structures for interesting timeline progression"):
831
+ gr.HTML("Placeholder - Considerations - Story from the perspective of Main character or NPC in the LLM genereated story")
832
+ mermaideditoriframebtn = gr.Button("Load Mermaid Editor")
833
+ mermaideditoriframe = gr.HTML("")
834
+ mermaideditoriframebtn.click(fn=lambda x: "<iframe src='https://mermaid.live/' width='100%' height='1000px'></iframe>", outputs=mermaideditoriframe)
835
+ with gr.Accordion("Mermaid Structures - click to open", open=False):
836
+ for key, item in mermaidstorystructures.items():
837
+ gr.Code(item, label=key)
838
+ #gr.Code(value=mermaidstorystructures['Parallel Storylines Progression'])
 
 
 
839
  with gr.Tab("Timeline Guide for Config Generation or evelution"):
840
  with gr.Accordion("Empty Config shape for explaining to LLM", open=False):
841
  gr.HTML(f"placeholder for current empty JSON config shape")
 
1168
 
1169
  with gr.Tab("Asset Generation Considerations"):
1170
  gr.HTML("Licenses for the spaces still to be evaluated - June 2024 <br> Users to follow with cool spaces - https://huggingface.co/jbilcke-hf, https://huggingface.co/dylanebert, https://huggingface.co/fffiloni, https://huggingface.co/artificialguybr, https://huggingface.co/radames, https://huggingface.co/multimodalart, ")
1171
+ gr.HTML("Whole game engine in a space? - https://huggingface.co/spaces/thomwolf/test_godot_editor <br><br> https://huggingface.co/godot-demo https://huggingface.co/spaces/thomwolf/test_godot")
1172
+ with gr.Tab("Text-based"):
1173
+ with gr.Accordion("LLM HF Spaces/Sites (Click Here to Open) - Ask for a story and suggestions based on the autoconfig", open=False):
1174
+ with gr.Row():
1175
+ linktochat = gr.Dropdown(choices=["--Multiple Models--", "https://labs.perplexity.ai/", "https://chat.lmsys.org", "https://sdk.vercel.ai/docs", "https://cyzgab-catch-me-if-you-can.hf.space",
1176
+ "--70B and above--", "https://qwen-qwen-max-0428.hf.space", "https://cohereforai-c4ai-command-r-plus.hf.space", "https://qwen-qwen1-5-110b-chat-demo.hf.space", "https://snowflake-snowflake-arctic-st-demo.hf.space", "https://databricks-dbrx-instruct.hf.space", "https://qwen-qwen1-5-72b-chat.hf.space",
1177
+ "--20B and above--", "https://gokaygokay-gemma-2-llamacpp.hf.space", "https://01-ai-yi-34b-chat.hf.space", "https://cohereforai-c4ai-command-r-v01.hf.space", "https://ehristoforu-mixtral-46-7b-chat.hf.space", "https://mosaicml-mpt-30b-chat.hf.space",
1178
+ "--7B and above--", "https://ysharma-chat-with-meta-llama3-8b.hf.space", "https://qwen-qwen1-5-moe-a2-7b-chat-demo.hf.space", "https://deepseek-ai-deepseek-coder-7b-instruct.hf.space", "https://osanseviero-mistral-super-fast.hf.space", "https://artificialguybr-qwen-14b-chat-demo.hf.space", "https://huggingface-projects-llama-2-7b-chat.hf.space",
1179
+ "--1B and above--", "https://huggingface.co/spaces/eswardivi/Phi-3-mini-128k-instruct", "https://eswardivi-phi-3-mini-4k-instruct.hf.space", "https://stabilityai-stablelm-2-1-6b-zephyr.hf.space",
1180
+ "--under 1B--", "unorganised", "https://ysharma-zephyr-playground.hf.space", "https://huggingfaceh4-zephyr-chat.hf.space", "https://ysharma-explore-llamav2-with-tgi.hf.space", "https://huggingfaceh4-falcon-chat.hf.space", "https://uwnlp-guanaco-playground-tgi.hf.space", "https://stabilityai-stablelm-tuned-alpha-chat.hf.space", "https://mosaicml-mpt-7b-storywriter.hf.space", "https://huggingfaceh4-starchat-playground.hf.space", "https://bigcode-bigcode-playground.hf.space", "https://mosaicml-mpt-7b-chat.hf.space", "https://huggingchat-chat-ui.hf.space", "https://togethercomputer-openchatkit.hf.space"], label="Choose/Cancel type any .hf.space link here (can also type a link)'", allow_custom_value=True)
1181
+ chatspacebtn = gr.Button("Use the chosen URL to load interface with a chat model. For sdk.vercel click the chat button on the top left. For lymsys / chat arena copy the link and use a new tab")
1182
+ chatspace = gr.HTML("Chat Space Chosen will load here")
1183
+ chatspacebtn.click(display_website, inputs=linktochat, outputs=chatspace)
1184
+ with gr.Tab("NPCS"):
1185
+ gr.HTML("For ideas on NPCS check: https://lifearchitect.ai/leta/, ")
1186
+ with gr.Tab("Save files"):
1187
+ 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")
1188
+ gr.HTML("Some ideas - In game websites eg. GTA esp stock markets, news; ")
1189
+ 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 ")
1190
+ 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")
1191
+ with gr.Tab("Diagrams"):
1192
+ gr.HTML("Claude 3.5 sonnet is very good with mermaid graphs - can used for maps, situational explanations")
1193
+ with gr.Tab("Maths"):
1194
+ gr.HTML("https://huggingface.co/spaces/AI-MO/math-olympiad-solver")
1195
 
1196
  with gr.Tab("Media Understanding"):
1197
  gr.HTML("NPC Response Engines? Camera, Shopkeeper, Companion, Enemies, etc.")
 
1389
  with gr.Tab("General"):
1390
  gr.HTML("Experiment for https://huggingface.co/spaces/ysharma/open-interpreter/blob/main/app.py inplementation with gradio client api")
1391
 
1392
+ gr.HTML("https://huggingface.co/spaces/HuggingFaceTB/SmolLM-135M-Instruct-WebGPU")
1393
+
1394
  gr.HTML("Useful Spaces and links: https://huggingface.co/spaces/artificialguybr/Stable-Audio-Open-Zero https://huggingface.co/spaces/stabilityai/TripoSR https://huggingface.co/spaces/wangfuyun/AnimateLCM-SVD https://huggingface.co/spaces/multimodalart/face-to-all https://huggingface.co/spaces/facebook/MusicGen https://huggingface.co/spaces/Doubiiu/tooncrafter")
1395
 
1396
  gr.HTML("langchain docs as awareness for alot of the integration use cases and providers that are possible - https://python.langchain.com/v0.2/docs/integrations/tools/")
 
1404
  with gr.Tab("Finetuning options"):
1405
  gr.HTML("Price - https://openpipe.ai/pricing")
1406
  with gr.Tab("Backend and/or Hosting?"):
1407
+ gr.HTML("Deployemnt options - https://huggingface.co/SpacesExamples", "https://huggingface.co/templates")
1408
  gr.HTML("Prototyping and freemium <br>free api <br>HF Pro subscription")
1409
  gr.HTML("GPU (Data privacy) = No Rate limits? - https://replicate.com/pricing, https://lambdalabs.com/service/gpu-cloud https://huggingface.co/pricing#endpoints https://tensordock.com/cloud-gpus")
1410
  gr.HTML("Speed - Groq, SambaNova, https://www.etched.com/announcing-etched ")
relatively_constant_variables.py CHANGED
@@ -6,6 +6,9 @@ Autostructure suggestor?
6
  Initial Game Config
7
  Comporation between inital and edited - with suggestions in between
8
  Test if HTML can load in HTML gradio component
 
 
 
9
  """
10
 
11
  #Supposed to be part of FAQ buttons
@@ -161,6 +164,16 @@ Frontendpromptengforguide = """Suggest descriptions for media to fill the empty
161
 
162
 
163
  FAQAllprompts = {
 
 
 
 
 
 
 
 
 
 
164
  "Brainstorming for this space": [
165
  ("Help me make a story", "- Explain to the user that they need to come up with a list of decisions, and then choose themes and then do the setting in characters and add some examples for each step:"),
166
  ],
@@ -1249,6 +1262,7 @@ mermaidstorystructures = {
1249
  #-------------------------#-------------------------#-------------------------#-------------------------
1250
 
1251
 
 
1252
  #-------------------------#-------------------------#-------------------------#-------------------------
1253
 
1254
 
 
6
  Initial Game Config
7
  Comporation between inital and edited - with suggestions in between
8
  Test if HTML can load in HTML gradio component
9
+
10
+
11
+
12
  """
13
 
14
  #Supposed to be part of FAQ buttons
 
164
 
165
 
166
  FAQAllprompts = {
167
+ "Example Workflow": [
168
+ ("I am writing a story about a chef. please write dishes to appear on the menu.", " - I am writing a story about a chef. please write dishes to appear on the menu.")
169
+ ("Lets brainstorm some decisions a chef would take", " - What are the most common decisions that a chef story would include?"),
170
+ ("Lets brainstorm some problems a chef would face", " - What are the kinds problems that a chef story would include?"),
171
+ ("Lets brainstorm some goals the chef would have", " - What are the kinds of out of reach goals that a chef story would include?"),
172
+ ("Please help me add to config that I pasted", " - Continue the pasted config from any complete block.")
173
+ ],
174
+ "FAQ": [
175
+ ("Help me make a story", "- Explain to the user that they need to come up with a list of decisions, and then choose themes and then do the setting in characters and add some examples for each step:"),
176
+ ],
177
  "Brainstorming for this space": [
178
  ("Help me make a story", "- Explain to the user that they need to come up with a list of decisions, and then choose themes and then do the setting in characters and add some examples for each step:"),
179
  ],
 
1262
  #-------------------------#-------------------------#-------------------------#-------------------------
1263
 
1264
 
1265
+
1266
  #-------------------------#-------------------------#-------------------------#-------------------------
1267
 
1268