kwabs22 commited on
Commit
32e1b31
1 Parent(s): 33582fc

More considerations

Browse files
Files changed (2) hide show
  1. README.md +13 -0
  2. app.py +10 -2
README.md CHANGED
@@ -8,6 +8,19 @@ 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
  ---
12
 
13
  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
+ models:
12
+ - Qwen/Qwen2-0.5B-Instruct
13
+ - Qwen/Qwen2-1.5B-Instruct
14
+ - Qwen/Qwen2-7B-Instruct
15
+ - Qwen/Qwen1.5-MoE-A2.7B-Chat
16
+ - HuggingFaceTB/SmolLM-135M-Instruct
17
+ - microsoft/Phi-3-mini-4k-instruct
18
+ - unsloth/Mistral-Nemo-Instruct-2407-bnb-4bit
19
+ - Groq/Llama-3-Groq-8B-Tool-Use
20
+ - hugging-quants/Meta-Llama-3.1-8B-Instruct-BNB-NF4
21
+ - SpectraSuite/TriLM_3.9B_Unpacked
22
+ - h2oai/h2o-danube3-500m-chat
23
+ - OuteAI/Lite-Mistral-150M-v2-Instruct
24
  ---
25
 
26
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py CHANGED
@@ -1089,6 +1089,7 @@ with gr.Blocks() as demo:
1089
  gr.HTML("July 2024 - Gemini, Cohere and Groq rate limit free APIs")
1090
  gr.Markdown("# Current Workflow = Mermaid Diagram to (1) Story to (2) Initial JSON (through LLM and fix JSON by hand) to JSON Corrections (through LLM and fix JSON by hand) to (4) Media prompts to (5) Asset Generation to (6) JSON Media field population")
1091
  with gr.Tab("Workflow Piplines"):
 
1092
  with gr.Tab("Mermaid Diagram to (1) Story"):
1093
  gr.HTML("Below 70B seem to struggle here")
1094
  gr.Code(WFStage1prompt , label="Prompt Used")
@@ -1099,12 +1100,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.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"):
@@ -1123,7 +1128,7 @@ with gr.Blocks() as demo:
1123
  with gr.Accordion(key, open=False):
1124
  gr.Code(item, label=key)
1125
 
1126
- with gr.Tab("Linear - Player List to Empty Config with Edit support"):
1127
  with gr.Accordion("Can copy in the Test Example State Machine tab - only linear path for now", open=False):
1128
  gr.Markdown("# Story and Timeline Generator")
1129
  gr.Markdown("Click the button to generate a random timeline and story based on UI elements and story events. <br>Ask an LLM to use this to write a story around")
@@ -1162,6 +1167,9 @@ with gr.Blocks() as demo:
1162
 
1163
  generate_button.click(generate_story_and_timeline, inputs=[generate_no_story_timeline_points, generate_no_ui_timeline_points, timeline_num_lists_slider, timeline_items_per_list_slider, timeline_include_existing_games, timeline_include_multiplayer], outputs=[timeline_output_with_assets, story_output, game_structure_output_text_with_media, timeline_output_text, timeline_selected_lists_text]) #, generate_no_media_timeline_points, generate_with_media_check], outputs=[timeline_output_with_assets, timeline_output, story_output, game_structure_output_text_with_media, game_structure_output_text])
1164
 
 
 
 
1165
  with gr.Tab("Linear - Machine Leaning Architectures as game maps"):
1166
  gr.HTML("Transformers, SSMs, Image and Video Generation Architectures, GANs, RNNS, etc.")
1167
 
 
1089
  gr.HTML("July 2024 - Gemini, Cohere and Groq rate limit free APIs")
1090
  gr.Markdown("# Current Workflow = Mermaid Diagram to (1) Story to (2) Initial JSON (through LLM and fix JSON by hand) to JSON Corrections (through LLM and fix JSON by hand) to (4) Media prompts to (5) Asset Generation to (6) JSON Media field population")
1091
  with gr.Tab("Workflow Piplines"):
1092
+ gr.HTML("<br>Workflow is currently based on using ZeroGPU space and resources - will add platform specific (chat changes prompts and native image generation changes order) flows much later <br>Prompt Testing has to be add each parameter level of models as smaller models can get it right with different wording")
1093
  with gr.Tab("Mermaid Diagram to (1) Story"):
1094
  gr.HTML("Below 70B seem to struggle here")
1095
  gr.Code(WFStage1prompt , label="Prompt Used")
 
1100
  gr.Textbox(TimeRelatedMermaidStoryAttempttoRefinefrom[3], lines=30)
1101
  gr.Textbox(TimeRelatedMermaidStoryAttempttoRefinefrom[4], lines=30)
1102
  with gr.Tab("Story to (2) JSON (through LLM and fix JSON by hand)"):
1103
+ gr.HTML("This Step specifically has to be function call only if you explain the tool can take as many blocks as neccesary")
1104
  gr.Code(WFStage2prompt , label="Prompt Used")
1105
  with gr.Tab("Initial JSON (through LLM and fix JSON by hand) to (3) JSON Corrections (through LLM and fix JSON by hand)"):
1106
  gr.Code("Lets a critique this JSON to find areas fix", label="prompt used")
1107
  with gr.Tab("JSON Corrections (through LLM and fix JSON by hand) to (4) Media prompts"):
1108
+ gr.HTML("This Step specifically has to be function call only")
1109
+ gr.HTML("Gemma-9b and Mistral 8x7b is better at this prompt than llama 3.1 8b and 70b <br>Can add (each media field must get an entry) and (in python list of list format for plug and play) but they affect final output")
1110
+ gr.Code("Lets a make a list for the prompts we will use to make media objects in this JSON. Make one for a person to interpret and one for direct media generators that focus on keywords: ", label="prompt used")
1111
  with gr.Tab("Media prompts to (5) Asset Generation"):
1112
+ gr.HTML("This Step specifically has to be function call only")
1113
  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")
1114
  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")
1115
  with gr.Tab("Asset Generation to (6) JSON Media field population"):
 
1128
  with gr.Accordion(key, open=False):
1129
  gr.Code(item, label=key)
1130
 
1131
+ with gr.Tab("Linear - Player List to Empty Config with Edit support (Narrative based)"):
1132
  with gr.Accordion("Can copy in the Test Example State Machine tab - only linear path for now", open=False):
1133
  gr.Markdown("# Story and Timeline Generator")
1134
  gr.Markdown("Click the button to generate a random timeline and story based on UI elements and story events. <br>Ask an LLM to use this to write a story around")
 
1167
 
1168
  generate_button.click(generate_story_and_timeline, inputs=[generate_no_story_timeline_points, generate_no_ui_timeline_points, timeline_num_lists_slider, timeline_items_per_list_slider, timeline_include_existing_games, timeline_include_multiplayer], outputs=[timeline_output_with_assets, story_output, game_structure_output_text_with_media, timeline_output_text, timeline_selected_lists_text]) #, generate_no_media_timeline_points, generate_with_media_check], outputs=[timeline_output_with_assets, timeline_output, story_output, game_structure_output_text_with_media, game_structure_output_text])
1169
 
1170
+ with gr.Tab("Linear - Existing Media eg. Songs and Screenshots"):
1171
+ gr.HTML("Media position in the story part beginning, during or end")
1172
+
1173
  with gr.Tab("Linear - Machine Leaning Architectures as game maps"):
1174
  gr.HTML("Transformers, SSMs, Image and Video Generation Architectures, GANs, RNNS, etc.")
1175