Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,8 +6,8 @@ from urllib.parse import quote # Ensure this import is included
|
|
6 |
|
7 |
# Set page configuration with a title and favicon
|
8 |
st.set_page_config(
|
9 |
-
page_title="
|
10 |
-
page_icon="
|
11 |
layout="wide",
|
12 |
initial_sidebar_state="expanded",
|
13 |
menu_items={
|
@@ -32,15 +32,12 @@ def create_download_link(filename, base64_str):
|
|
32 |
href = f'<a href="data:file/png;base64,{base64_str}" download="{filename}">Download Image</a>'
|
33 |
return href
|
34 |
|
35 |
-
# Get this from paste into markdown feature
|
36 |
-
#image_url = "https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/pxbIhDGTbdgv22giGuI-i.png"
|
37 |
-
|
38 |
image_url = "https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/o1FI3G_BueAAanLBeqoo3.png"
|
39 |
|
40 |
image_base64 = get_image_as_base64(image_url)
|
41 |
if image_base64 is not None:
|
42 |
with st.sidebar:
|
43 |
-
st.markdown("""###
|
44 |
st.markdown(f"")
|
45 |
download_link = create_download_link("downloaded_image.png", image_base64)
|
46 |
st.markdown(download_link, unsafe_allow_html=True)
|
@@ -1299,10 +1296,10 @@ def main():
|
|
1299 |
|
1300 |
|
1301 |
# Display the glossary grid
|
1302 |
-
st.
|
1303 |
display_images_and_wikipedia_summaries()
|
1304 |
display_glossary_grid(roleplaying_glossary)
|
1305 |
-
|
1306 |
st.markdown("## Explore the vast universes of Dungeons and Dragons, Call of Cthulhu, GURPS, and more through interactive storytelling and encyclopedic knowledge.🌠")
|
1307 |
|
1308 |
display_buttons_with_scores()
|
|
|
6 |
|
7 |
# Set page configuration with a title and favicon
|
8 |
st.set_page_config(
|
9 |
+
page_title="🗺️🛠️ RolePlayAI",
|
10 |
+
page_icon="🗺️",
|
11 |
layout="wide",
|
12 |
initial_sidebar_state="expanded",
|
13 |
menu_items={
|
|
|
32 |
href = f'<a href="data:file/png;base64,{base64_str}" download="{filename}">Download Image</a>'
|
33 |
return href
|
34 |
|
|
|
|
|
|
|
35 |
image_url = "https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/o1FI3G_BueAAanLBeqoo3.png"
|
36 |
|
37 |
image_base64 = get_image_as_base64(image_url)
|
38 |
if image_base64 is not None:
|
39 |
with st.sidebar:
|
40 |
+
st.markdown("""### 🗺️🛠️ RolePlayAI""")
|
41 |
st.markdown(f"")
|
42 |
download_link = create_download_link("downloaded_image.png", image_base64)
|
43 |
st.markdown(download_link, unsafe_allow_html=True)
|
|
|
1296 |
|
1297 |
|
1298 |
# Display the glossary grid
|
1299 |
+
st.markdown("🗺️🛠️ RolePlayAI")
|
1300 |
display_images_and_wikipedia_summaries()
|
1301 |
display_glossary_grid(roleplaying_glossary)
|
1302 |
+
|
1303 |
st.markdown("## Explore the vast universes of Dungeons and Dragons, Call of Cthulhu, GURPS, and more through interactive storytelling and encyclopedic knowledge.🌠")
|
1304 |
|
1305 |
display_buttons_with_scores()
|