awacke1 commited on
Commit
6afa002
β€’
1 Parent(s): 7606437

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -66,8 +66,8 @@ import numpy as np
66
 
67
 
68
  PromptPrefix = 'Create a markdown outline and table with appropriate emojis for graphic novel rules defining the method steps of play for topic of '
69
- PromptPrefix2 = 'Create a streamlit python user app. Show full code listing. Create a UI implementing storytelling features using plot twists and recurring interesting named characters with genius traits and file IO, randomness, ten point choice lists, math distribution tradeoffs, witty humorous dilemnas with emoji , rewards, variables, reusable functions with parameters, and data driven app with python libraries and streamlit components for Javascript and HTML5. Use appropriate emojis for labels to summarize and list parts, function, conditions for topic: '
70
- #PromptPrefix2 = PromptPrefix2 + experimentalSubProgram # Super meta program!
71
 
72
 
73
  st.markdown('''### πŸ“–βœ¨πŸ” GraphicNovelAI ''')
@@ -361,7 +361,7 @@ def search_glossary(query):
361
  filename = generate_filename(query2 + ' --- ' + response, "md")
362
  create_file(filename, query, response, should_save)
363
 
364
- query3 = PromptPrefix2 + query + ' creating streamlit functions that implement outline of method steps below: ' + response # Add prompt preface for coding task behavior
365
  # st.write('## ' + query3)
366
  st.write('## πŸ” Coding with GPT.') # -------------------------------------------------------------------------------------------------
367
  response2 = chat_with_model(query3)
@@ -392,8 +392,9 @@ def display_glossary_grid(roleplaying_glossary):
392
  "▢️": lambda k: f"https://www.youtube.com/results?search_query={quote(k)}",
393
  "πŸ”Ž": lambda k: f"https://www.bing.com/search?q={quote(k)}",
394
  "🎲": lambda k: f"https://huggingface.co/spaces/awacke1/GraphicAINovel?q={quote(k)}", # this url plus query!
395
- "πŸƒ": lambda k: f"https://huggingface.co/spaces/awacke1/GraphicAINovel?q={quote(k)}{quote(PromptPrefix)}", # this url plus query!
396
- "πŸ“š": lambda k: f"https://huggingface.co/spaces/awacke1/GraphicAINovel?q={quote(k)}{quote(PromptPrefix2)}", # this url plus query!
 
397
 
398
  }
399
 
 
66
 
67
 
68
  PromptPrefix = 'Create a markdown outline and table with appropriate emojis for graphic novel rules defining the method steps of play for topic of '
69
+ PromptPrefix2 = 'Create a streamlit python user app. Show full code listing. Create a UI implementing storytelling, features use three emoji appropriate short text plot twists and recurring interesting named characters with genius traits and file IO, randomness, ten point choice lists, math distribution tradeoffs, witty humorous dilemnas with emoji , rewards, variables, reusable functions with parameters, and data driven app with python libraries and streamlit components for Javascript and HTML5. Use appropriate emojis for labels to summarize and list parts, function, conditions for topic: '
70
+ PromptPrefix3 = 'Create a HTML5 aframe and javascript app. Show full code listing. Create a UI implementing storytelling, features using use three emoji appropriate text detailed plot twists and recurring interesting named characters with genius traits and file IO, randomness, ten point choice lists, math distribution tradeoffs, witty humorous dilemnas with emoji , rewards, variables, reusable functions with parameters, and data driven app with python libraries and streamlit components for Javascript and HTML5. Use appropriate emojis for labels to summarize and list parts, function, conditions for topic:'
71
 
72
 
73
  st.markdown('''### πŸ“–βœ¨πŸ” GraphicNovelAI ''')
 
361
  filename = generate_filename(query2 + ' --- ' + response, "md")
362
  create_file(filename, query, response, should_save)
363
 
364
+ query3 = PromptPrefix2 + query + ' for story outline of method steps: ' + response # Add prompt preface for coding task behavior
365
  # st.write('## ' + query3)
366
  st.write('## πŸ” Coding with GPT.') # -------------------------------------------------------------------------------------------------
367
  response2 = chat_with_model(query3)
 
392
  "▢️": lambda k: f"https://www.youtube.com/results?search_query={quote(k)}",
393
  "πŸ”Ž": lambda k: f"https://www.bing.com/search?q={quote(k)}",
394
  "🎲": lambda k: f"https://huggingface.co/spaces/awacke1/GraphicAINovel?q={quote(k)}", # this url plus query!
395
+ "πŸƒ": lambda k: f"https://huggingface.co/spaces/awacke1/GraphicAINovel?q={quote(PromptPrefix)}{quote(k)}", # this url plus query!
396
+ "πŸ“š": lambda k: f"https://huggingface.co/spaces/awacke1/GraphicAINovel?q={quote(PromptPrefix2)}{quote(k)}", # this url plus query!
397
+ "πŸ“š": lambda k: f"https://huggingface.co/spaces/awacke1/GraphicAINovel?q={quote(PromptPrefix3)}{quote(k)}", # this url plus query!
398
 
399
  }
400