Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,18 +32,36 @@ def create_download_link(filename, base64_str):
|
|
| 32 |
return href
|
| 33 |
|
| 34 |
# Get this from paste into markdown feature
|
| 35 |
-
image_url = "https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
image_base64 = get_image_as_base64(image_url)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
if image_base64 is not None:
|
| 38 |
with st.sidebar:
|
| 39 |
-
st.markdown("""### Word Game AI
|
| 40 |
st.markdown(f"")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
#download_link = create_download_link("downloaded_image.png", image_base64)
|
| 42 |
#st.markdown(download_link, unsafe_allow_html=True)
|
| 43 |
else:
|
| 44 |
st.sidebar.write("Failed to load the image.")
|
| 45 |
# ------------------------------------------------------------- Art Card Sidebar
|
| 46 |
|
|
|
|
| 47 |
# Ensure the directory for storing scores exists
|
| 48 |
score_dir = "scores"
|
| 49 |
os.makedirs(score_dir, exist_ok=True)
|
|
|
|
| 32 |
return href
|
| 33 |
|
| 34 |
# Get this from paste into markdown feature
|
| 35 |
+
image_url = "https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/G_GkRD_IT3f14K7gWlbwi.png"
|
| 36 |
+
image_url2 = "https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/gikaT871Mm8k6wuv4pl_g.png"
|
| 37 |
+
image_url3 = "https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/gv1xmIiXh1NGTeeV-cYF2.png"
|
| 38 |
+
image_url4 = "https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/2YsnDyc_nDNW71PPKozdN.png"
|
| 39 |
+
#image_url5 = "https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/gv1xmIiXh1NGTeeV-cYF2.png"
|
| 40 |
+
#image_url6 = "https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/gv1xmIiXh1NGTeeV-cYF2.png"
|
| 41 |
+
|
| 42 |
image_base64 = get_image_as_base64(image_url)
|
| 43 |
+
image_base642 = get_image_as_base64(image_url2)
|
| 44 |
+
image_base643 = get_image_as_base64(image_url3)
|
| 45 |
+
image_base644 = get_image_as_base64(image_url4)
|
| 46 |
+
#image_base645 = get_image_as_base64(image_url5)
|
| 47 |
+
#image_base646 = get_image_as_base64(image_url6)
|
| 48 |
+
|
| 49 |
if image_base64 is not None:
|
| 50 |
with st.sidebar:
|
| 51 |
+
st.markdown("""### Word Game AI""")
|
| 52 |
st.markdown(f"")
|
| 53 |
+
st.markdown(f"")
|
| 54 |
+
st.markdown(f"")
|
| 55 |
+
st.markdown(f"")
|
| 56 |
+
# st.markdown(f"")
|
| 57 |
+
# st.markdown(f"")
|
| 58 |
#download_link = create_download_link("downloaded_image.png", image_base64)
|
| 59 |
#st.markdown(download_link, unsafe_allow_html=True)
|
| 60 |
else:
|
| 61 |
st.sidebar.write("Failed to load the image.")
|
| 62 |
# ------------------------------------------------------------- Art Card Sidebar
|
| 63 |
|
| 64 |
+
|
| 65 |
# Ensure the directory for storing scores exists
|
| 66 |
score_dir = "scores"
|
| 67 |
os.makedirs(score_dir, exist_ok=True)
|