Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -609,6 +609,9 @@ Example: letter_queue = deque(random.sample(string.ascii_uppercase, 10))"""
|
|
609 |
all = all + webquery + ' ' + webresponse
|
610 |
st.write('๐Run 4 is Complete.')
|
611 |
|
|
|
|
|
|
|
612 |
#PromptPrefix2 = 'Create a streamlit python user app with full code listing to create a UI implementing the plans, structure, situations and tables as python functions creating a word game with parts of speech and humorous word play which operates like word game rules and creates a compelling fun story using streamlit to create user interface elements like emoji buttons, sliders, drop downs, and data interfaces like dataframes to show tables, session_state to track inventory, character advancement and experience, locations, file_uploader to allow the user to add images which are saved and referenced shown in gallery, camera_input to take character picture, on_change = function callbacks with continual running plots that change when you change data or click a button, randomness and word and letter rolls using emojis and st.markdown, st.expander for groupings and clusters of things, st.columns and other UI controls in streamlit as a game. Create inline data tables and list dictionaries for entities implemented as variables for the word game rule entities and stats. Design it as a fun data driven game app and show full python code listing for this ruleset and thematic story plot line: '
|
613 |
#PromptPrefix3 = 'Create a HTML5 aframe and javascript app using appropriate libraries to create a word game simulation with advanced libraries like aframe to render 3d scenes creating moving entities that stay within a bounding box but show text and animation in 3d for inventory, components and story entities. Show full code listing. Add a list of new random entities say 3 of a few different types to any list appropriately and use emojis to make things easier and fun to read. Use appropriate emojis in labels. Create the UI to implement storytelling in the style of a dungeon master, with features using three emoji appropriate text plot twists and recurring interesting funny fascinating and complex almost poetic 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:'
|
614 |
|
@@ -1210,8 +1213,8 @@ def StreamMedChatResponse(topic):
|
|
1210 |
|
1211 |
|
1212 |
# 17. Main
|
1213 |
-
def arxivmain():
|
1214 |
-
prompt =
|
1215 |
with st.expander("Prompts ๐", expanded=True):
|
1216 |
example_input = st.text_input("Enter your prompt text:", value=prompt, help="Enter text to get a response.")
|
1217 |
if st.button("Run Prompt", help="Click to run."):
|
@@ -1346,7 +1349,6 @@ except:
|
|
1346 |
# Display the glossary grid
|
1347 |
st.markdown("### ๐ฒ๐บ๏ธ Arxiv Paper Search QA RAG MAS using Streamlit and Gradio API")
|
1348 |
|
1349 |
-
arxivmain()
|
1350 |
display_videos_and_links() # Video Jump Grid
|
1351 |
display_images_and_wikipedia_summaries() # Image Jump Grid
|
1352 |
display_glossary_grid(roleplaying_glossary) # Word Glossary Jump Grid
|
@@ -1379,7 +1381,7 @@ if st.button("Clear Query Parameters", key='ClearQueryParams'):
|
|
1379 |
# This will clear the browser URL's query parameters
|
1380 |
st.experimental_set_query_params
|
1381 |
st.experimental_rerun()
|
1382 |
-
|
1383 |
# 18. Run AI Pipeline
|
1384 |
if __name__ == "__main__":
|
1385 |
whisper_main()
|
|
|
609 |
all = all + webquery + ' ' + webresponse
|
610 |
st.write('๐Run 4 is Complete.')
|
611 |
|
612 |
+
|
613 |
+
arxivmain(query)
|
614 |
+
|
615 |
#PromptPrefix2 = 'Create a streamlit python user app with full code listing to create a UI implementing the plans, structure, situations and tables as python functions creating a word game with parts of speech and humorous word play which operates like word game rules and creates a compelling fun story using streamlit to create user interface elements like emoji buttons, sliders, drop downs, and data interfaces like dataframes to show tables, session_state to track inventory, character advancement and experience, locations, file_uploader to allow the user to add images which are saved and referenced shown in gallery, camera_input to take character picture, on_change = function callbacks with continual running plots that change when you change data or click a button, randomness and word and letter rolls using emojis and st.markdown, st.expander for groupings and clusters of things, st.columns and other UI controls in streamlit as a game. Create inline data tables and list dictionaries for entities implemented as variables for the word game rule entities and stats. Design it as a fun data driven game app and show full python code listing for this ruleset and thematic story plot line: '
|
616 |
#PromptPrefix3 = 'Create a HTML5 aframe and javascript app using appropriate libraries to create a word game simulation with advanced libraries like aframe to render 3d scenes creating moving entities that stay within a bounding box but show text and animation in 3d for inventory, components and story entities. Show full code listing. Add a list of new random entities say 3 of a few different types to any list appropriately and use emojis to make things easier and fun to read. Use appropriate emojis in labels. Create the UI to implement storytelling in the style of a dungeon master, with features using three emoji appropriate text plot twists and recurring interesting funny fascinating and complex almost poetic 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:'
|
617 |
|
|
|
1213 |
|
1214 |
|
1215 |
# 17. Main
|
1216 |
+
def arxivmain(query):
|
1217 |
+
prompt = query
|
1218 |
with st.expander("Prompts ๐", expanded=True):
|
1219 |
example_input = st.text_input("Enter your prompt text:", value=prompt, help="Enter text to get a response.")
|
1220 |
if st.button("Run Prompt", help="Click to run."):
|
|
|
1349 |
# Display the glossary grid
|
1350 |
st.markdown("### ๐ฒ๐บ๏ธ Arxiv Paper Search QA RAG MAS using Streamlit and Gradio API")
|
1351 |
|
|
|
1352 |
display_videos_and_links() # Video Jump Grid
|
1353 |
display_images_and_wikipedia_summaries() # Image Jump Grid
|
1354 |
display_glossary_grid(roleplaying_glossary) # Word Glossary Jump Grid
|
|
|
1381 |
# This will clear the browser URL's query parameters
|
1382 |
st.experimental_set_query_params
|
1383 |
st.experimental_rerun()
|
1384 |
+
|
1385 |
# 18. Run AI Pipeline
|
1386 |
if __name__ == "__main__":
|
1387 |
whisper_main()
|