Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -452,8 +452,8 @@ def search_glossary(query): # 🔍Run------------------------------------------
|
|
452 |
|
453 |
# 🔍Run 2 - Specification Expert - Write a Document to Specify Inner Dialog of Expert
|
454 |
specquery = 'For the topic of: ' + query + ', Write a specification which documents your inner dialog as an expert storyteller and word game creator.'
|
455 |
-
specquery = specquery + 'For the
|
456 |
-
specquery = specquery + 'Here is the list of word game rules you will
|
457 |
specquery = specquery + WordGameRules
|
458 |
specresponse = chat_with_model(specquery)
|
459 |
all = all + specquery + ' ' + specresponse
|
@@ -461,12 +461,12 @@ def search_glossary(query): # 🔍Run------------------------------------------
|
|
461 |
SpeechSynthesis(specresponse)
|
462 |
|
463 |
# 🔍Run 3 - Coding Expert - Write a Streamlit Python program with app.py and requirements.txt
|
464 |
-
codequery = 'Write a streamlit python program
|
465 |
codequery = codequery + query + '.'
|
466 |
-
codequery = codequery + '
|
467 |
codequery = codequery + WordGamePython
|
468 |
-
codequery = codequery + '
|
469 |
-
codequery = codequery + 'Also use
|
470 |
codequery = codequery + specresponse # feed forward expert output to next expert agent
|
471 |
coderesponse = chat_with_model(codequery)
|
472 |
all = all + codequery + ' ' + coderesponse
|
|
|
452 |
|
453 |
# 🔍Run 2 - Specification Expert - Write a Document to Specify Inner Dialog of Expert
|
454 |
specquery = 'For the topic of: ' + query + ', Write a specification which documents your inner dialog as an expert storyteller and word game creator.'
|
455 |
+
specquery = specquery + 'For each one of the Game Features of the specification write three short fun game rules with a plan and description on how to play. Write each like a specification and a story and a game blending fun and humorous ideas which allow a player to get better at all modalities of language.'
|
456 |
+
specquery = specquery + 'Here is the list of word game rules you will expand on how with plan and specification. Use markdown code, tables and outlines. Use appropriate emojis for each rule and feature. Make it easy to read with emojis, boldface and outlines and titles (#, ##, ###, ####) along with (** around text for bold):'
|
457 |
specquery = specquery + WordGameRules
|
458 |
specresponse = chat_with_model(specquery)
|
459 |
all = all + specquery + ' ' + specresponse
|
|
|
461 |
SpeechSynthesis(specresponse)
|
462 |
|
463 |
# 🔍Run 3 - Coding Expert - Write a Streamlit Python program with app.py and requirements.txt
|
464 |
+
codequery = 'Write a streamlit python program which implements line for line each function and UI in the rule specification with coded features for each as a functionCreate a streamlit user interface for each for input and output for the user for each feature to play a complete word game called: '
|
465 |
codequery = codequery + query + '.'
|
466 |
+
codequery = codequery + 'Use python features for word game such as the python game here: '
|
467 |
codequery = codequery + WordGamePython
|
468 |
+
codequery = codequery + 'Create a visually appealing UI (plan and code them from specification) so the user has fun interacting with these game features so each should have a small ui possibly st.expander or use of select and list boxes etc to make the UI flow well having multiple action centers where the screen and text change due to random and lists with you adding lots of tables of words etc which make it fun: '
|
469 |
+
codequery = codequery + 'Also use the specification to serve as your feature set for the word game you are writing in python and streamlit. Include the entire specification as markdown inside the program.'
|
470 |
codequery = codequery + specresponse # feed forward expert output to next expert agent
|
471 |
coderesponse = chat_with_model(codequery)
|
472 |
all = all + codequery + ' ' + coderesponse
|