Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
70 |
-
|
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 + '
|
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(
|
396 |
-
"๐": lambda k: f"https://huggingface.co/spaces/awacke1/GraphicAINovel?q={quote(
|
|
|
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 |
|