Update app.py
Browse files
app.py
CHANGED
@@ -31,13 +31,12 @@ from xml.etree import ElementTree as ET
|
|
31 |
from PIL import Image
|
32 |
from urllib.parse import quote # Ensure this import is included
|
33 |
|
34 |
-
# 1. Configuration
|
35 |
Site_Name = 'Scholarly-Article-Document-Search-With-Memory'
|
36 |
title="🔬🧠ScienceBrain.AI"
|
37 |
helpURL='https://huggingface.co/awacke1'
|
38 |
bugURL='https://huggingface.co/spaces/awacke1'
|
39 |
icons='🔬'
|
40 |
-
|
41 |
st.set_page_config(
|
42 |
page_title=title,
|
43 |
page_icon=icons,
|
@@ -53,7 +52,6 @@ st.set_page_config(
|
|
53 |
|
54 |
def load_file(file_name):
|
55 |
with open(file_name, "r", encoding='utf-8') as file:
|
56 |
-
#with open(file_name, "r") as file:
|
57 |
content = file.read()
|
58 |
return content
|
59 |
|
@@ -222,8 +220,11 @@ def download_pdf(url, filename):
|
|
222 |
PromptPrefix = 'Create a specification with streamlit functions creating markdown outlines and tables rich with appropriate emojis for methodical step by step rules defining the concepts at play. Use story structure architect rules to plan, structure and write three dramatic situations to include in the rules and how to play by matching the theme for topic of '
|
223 |
PromptPrefix2 = 'Create a streamlit python user app with full code listing to create a UI implementing the using streamlit, gradio, huggingface to create user interface elements like emoji buttons, sliders, drop downs, and data interfaces like dataframes to show tables, session_statematching this ruleset and thematic story plot line: '
|
224 |
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:'
|
225 |
-
|
226 |
-
st.
|
|
|
|
|
|
|
227 |
roleplaying_glossary = {
|
228 |
"🤖 AI Concepts": {
|
229 |
"MoE (Mixture of Experts) 🧠": [
|
|
|
31 |
from PIL import Image
|
32 |
from urllib.parse import quote # Ensure this import is included
|
33 |
|
34 |
+
# 1. 🔧📝 - Configuration
|
35 |
Site_Name = 'Scholarly-Article-Document-Search-With-Memory'
|
36 |
title="🔬🧠ScienceBrain.AI"
|
37 |
helpURL='https://huggingface.co/awacke1'
|
38 |
bugURL='https://huggingface.co/spaces/awacke1'
|
39 |
icons='🔬'
|
|
|
40 |
st.set_page_config(
|
41 |
page_title=title,
|
42 |
page_icon=icons,
|
|
|
52 |
|
53 |
def load_file(file_name):
|
54 |
with open(file_name, "r", encoding='utf-8') as file:
|
|
|
55 |
content = file.read()
|
56 |
return content
|
57 |
|
|
|
220 |
PromptPrefix = 'Create a specification with streamlit functions creating markdown outlines and tables rich with appropriate emojis for methodical step by step rules defining the concepts at play. Use story structure architect rules to plan, structure and write three dramatic situations to include in the rules and how to play by matching the theme for topic of '
|
221 |
PromptPrefix2 = 'Create a streamlit python user app with full code listing to create a UI implementing the using streamlit, gradio, huggingface to create user interface elements like emoji buttons, sliders, drop downs, and data interfaces like dataframes to show tables, session_statematching this ruleset and thematic story plot line: '
|
222 |
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:'
|
223 |
+
|
224 |
+
if st.checkbox(label='🎁Show Deities and Demigods Dataset', key='Deities'):
|
225 |
+
Deities = DnD.DeitiesAndDemigods
|
226 |
+
st.markdown(Deities)
|
227 |
+
|
228 |
roleplaying_glossary = {
|
229 |
"🤖 AI Concepts": {
|
230 |
"MoE (Mixture of Experts) 🧠": [
|