Update app.py
Browse files
app.py
CHANGED
|
@@ -104,18 +104,18 @@ totalScore =tscore2 + tscore3 + tscore4 + tscore5 + tscore6 + tscore7
|
|
| 104 |
st.markdown("### Words and Scores for Selected Letters")
|
| 105 |
st.write("Total Score = ", (totalScore))
|
| 106 |
|
| 107 |
-
st.write("Words for ",clue2, clue_result2)
|
| 108 |
-
st.write("Score for 2 letter words = ", (tscore2))
|
| 109 |
-
st.write("Words for ",clue3, clue_result3)
|
| 110 |
-
st.write("Score for 3 letter words = ", (tscore3))
|
| 111 |
-
st.write("Words for ",clue4, clue_result4)
|
| 112 |
-
st.write("Score for 4 letter words = ", (tscore4))
|
| 113 |
-
st.write("Words for ",clue5, clue_result5)
|
| 114 |
-
st.write("Score for 5 letter words = ", (tscore5))
|
| 115 |
-
st.write("Words for ",clue6, clue_result6)
|
| 116 |
-
st.write("Score for 6 letter words = ", (tscore6))
|
| 117 |
-
st.write("Words for ",clue7, clue_result7)
|
| 118 |
st.write("Score for 7 letter words = ", (tscore7))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
|
| 120 |
@st.cache # cache download processes so they only execute once with same inputs
|
| 121 |
def define(word):
|
|
@@ -127,7 +127,6 @@ def define(word):
|
|
| 127 |
content = tag.get("content", None)
|
| 128 |
return content
|
| 129 |
|
| 130 |
-
|
| 131 |
for word in clue_result7:
|
| 132 |
content = define(word)
|
| 133 |
st.write(content)
|
|
|
|
| 104 |
st.markdown("### Words and Scores for Selected Letters")
|
| 105 |
st.write("Total Score = ", (totalScore))
|
| 106 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 107 |
st.write("Score for 7 letter words = ", (tscore7))
|
| 108 |
+
st.write("Words for ",clue7, clue_result7)
|
| 109 |
+
st.write("Score for 6 letter words = ", (tscore6))
|
| 110 |
+
st.write("Words for ",clue6, clue_result6)
|
| 111 |
+
st.write("Score for 5 letter words = ", (tscore5))
|
| 112 |
+
st.write("Words for ",clue5, clue_result5)
|
| 113 |
+
st.write("Score for 4 letter words = ", (tscore4))
|
| 114 |
+
st.write("Words for ",clue4, clue_result4)
|
| 115 |
+
st.write("Score for 3 letter words = ", (tscore3))
|
| 116 |
+
st.write("Words for ",clue3, clue_result3)
|
| 117 |
+
st.write("Score for 2 letter words = ", (tscore2))
|
| 118 |
+
st.write("Words for ",clue2, clue_result2)
|
| 119 |
|
| 120 |
@st.cache # cache download processes so they only execute once with same inputs
|
| 121 |
def define(word):
|
|
|
|
| 127 |
content = tag.get("content", None)
|
| 128 |
return content
|
| 129 |
|
|
|
|
| 130 |
for word in clue_result7:
|
| 131 |
content = define(word)
|
| 132 |
st.write(content)
|