Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,29 +34,29 @@ def create_download_link(filename, base64_str):
|
|
34 |
return href
|
35 |
|
36 |
# Get this from paste into markdown feature
|
37 |
-
image_url = "https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/G_GkRD_IT3f14K7gWlbwi.png"
|
38 |
image_url2 = "https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/gikaT871Mm8k6wuv4pl_g.png"
|
39 |
image_url3 = "https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/gv1xmIiXh1NGTeeV-cYF2.png"
|
40 |
image_url4 = "https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/2YsnDyc_nDNW71PPKozdN.png"
|
41 |
-
image_url5 = "https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/eGii5DvGIuCtWCU08_i-D.png"
|
42 |
-
image_url6 = "https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/2-KfxcuXRcTFiHf4XlNsX.png"
|
43 |
|
44 |
-
image_base64 = get_image_as_base64(image_url)
|
45 |
image_base642 = get_image_as_base64(image_url2)
|
46 |
image_base643 = get_image_as_base64(image_url3)
|
47 |
image_base644 = get_image_as_base64(image_url4)
|
48 |
-
image_base645 = get_image_as_base64(image_url5)
|
49 |
-
image_base646 = get_image_as_base64(image_url6)
|
50 |
|
51 |
if image_base64 is not None:
|
52 |
with st.sidebar:
|
53 |
st.markdown("""### Word Game AI""")
|
54 |
-
st.markdown(f"")
|
55 |
st.markdown(f"")
|
56 |
st.markdown(f"")
|
57 |
st.markdown(f"")
|
58 |
-
st.markdown(f"")
|
59 |
-
st.markdown(f"")
|
60 |
#download_link = create_download_link("downloaded_image.png", image_base64)
|
61 |
#st.markdown(download_link, unsafe_allow_html=True)
|
62 |
else:
|
@@ -291,7 +291,7 @@ def display_buttons_with_scores():
|
|
291 |
query_prefix = f"{category_emoji} {game_emoji} **{game} - {category}:**"
|
292 |
# ----------------------------------------------------------------------------------------------
|
293 |
#query_body = f"Create a detailed outline for **{term}** with subpoints highlighting key aspects, using emojis for visual engagement. Include step-by-step rules and boldface important entities and ruleset elements."
|
294 |
-
query_body = f"Create a streamlit python app.py that produces a detailed markdown outline and
|
295 |
response = search_glossary(query_prefix + query_body)
|
296 |
|
297 |
|
|
|
34 |
return href
|
35 |
|
36 |
# Get this from paste into markdown feature
|
37 |
+
#image_url = "https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/G_GkRD_IT3f14K7gWlbwi.png"
|
38 |
image_url2 = "https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/gikaT871Mm8k6wuv4pl_g.png"
|
39 |
image_url3 = "https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/gv1xmIiXh1NGTeeV-cYF2.png"
|
40 |
image_url4 = "https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/2YsnDyc_nDNW71PPKozdN.png"
|
41 |
+
#image_url5 = "https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/eGii5DvGIuCtWCU08_i-D.png"
|
42 |
+
#image_url6 = "https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/2-KfxcuXRcTFiHf4XlNsX.png"
|
43 |
|
44 |
+
#image_base64 = get_image_as_base64(image_url)
|
45 |
image_base642 = get_image_as_base64(image_url2)
|
46 |
image_base643 = get_image_as_base64(image_url3)
|
47 |
image_base644 = get_image_as_base64(image_url4)
|
48 |
+
#image_base645 = get_image_as_base64(image_url5)
|
49 |
+
#image_base646 = get_image_as_base64(image_url6)
|
50 |
|
51 |
if image_base64 is not None:
|
52 |
with st.sidebar:
|
53 |
st.markdown("""### Word Game AI""")
|
54 |
+
#st.markdown(f"")
|
55 |
st.markdown(f"")
|
56 |
st.markdown(f"")
|
57 |
st.markdown(f"")
|
58 |
+
#st.markdown(f"")
|
59 |
+
#st.markdown(f"")
|
60 |
#download_link = create_download_link("downloaded_image.png", image_base64)
|
61 |
#st.markdown(download_link, unsafe_allow_html=True)
|
62 |
else:
|
|
|
291 |
query_prefix = f"{category_emoji} {game_emoji} **{game} - {category}:**"
|
292 |
# ----------------------------------------------------------------------------------------------
|
293 |
#query_body = f"Create a detailed outline for **{term}** with subpoints highlighting key aspects, using emojis for visual engagement. Include step-by-step rules and boldface important entities and ruleset elements."
|
294 |
+
query_body = f"Create a streamlit python app.py that produces a detailed markdown outline and emoji laden user interface with labels with the entity name and emojis in all labels with a set of streamlit UI components with drop down lists and dataframes and buttons with expander and sidebar for the app to run the data as default values mostly in text boxes. Feature a 3 point outline sith 3 subpoints each where each line has about six words describing this and also contain appropriate emoji for creating sumamry of all aspeccts of this topic. an outline for **{term}** with subpoints highlighting key aspects, using emojis for visual engagement. Include step-by-step rules and boldface important entities and ruleset elements."
|
295 |
response = search_glossary(query_prefix + query_body)
|
296 |
|
297 |
|