Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from datetime import datetime
|
|
6 |
from base64 import b64encode
|
7 |
import time
|
8 |
|
9 |
-
FOOD_LIST = {4: "
|
10 |
|
11 |
def roll_dice(num_rolls, dice_type):
|
12 |
rolls = np.random.randint(1, dice_type + 1, size=num_rolls)
|
@@ -27,8 +27,8 @@ def plot_tokens(health_tokens, coin_tokens):
|
|
27 |
))
|
28 |
return fig
|
29 |
|
30 |
-
st.set_page_config(page_title="
|
31 |
-
st.title("
|
32 |
|
33 |
username = st.sidebar.text_input("๐ค Enter your username:")
|
34 |
num_rolls = st.sidebar.slider("๐ข Choose the number of rolls:", 1, 100, 3)
|
@@ -63,7 +63,9 @@ for i in range(10):
|
|
63 |
fig_element.plotly_chart(fig)
|
64 |
time.sleep(1)
|
65 |
|
66 |
-
df = pd.concat([pd.DataFrame(history["roll_history"]), pd.DataFrame(history["health_tokens"], columns=["Health Tokens"]), pd.DataFrame(history["coin_tokens"], columns=["Coin Tokens
|
|
|
|
|
67 |
|
68 |
timestamp = datetime.now().strftime("%m-%d-%Y-%H-%M-%S")
|
69 |
filename = f"{username}_{timestamp}.csv"
|
@@ -72,11 +74,12 @@ st.markdown(f'<a href="data:file/csv;base64,{b64encode(open(filename, "rb").read
|
|
72 |
|
73 |
st.markdown("""
|
74 |
|
75 |
-
๐ฃ Introducing
|
76 |
-
๐
|
77 |
-
๐ Our
|
78 |
-
๐
|
79 |
-
๐ Download
|
80 |
-
๐ It's time to ditch the boring old
|
|
|
81 |
|
82 |
""")
|
|
|
6 |
from base64 import b64encode
|
7 |
import time
|
8 |
|
9 |
+
FOOD_LIST = {4: "๐ฅฆ", 6: "๐", 8: "๐ฅ", 10: "๐
", 12: "๐", 20: "๐ฅ", 50: "๐", 100: "๐ฅฅ"}
|
10 |
|
11 |
def roll_dice(num_rolls, dice_type):
|
12 |
rolls = np.random.randint(1, dice_type + 1, size=num_rolls)
|
|
|
27 |
))
|
28 |
return fig
|
29 |
|
30 |
+
st.set_page_config(page_title="๐ฅฆ๐ฅ Healthy Eats ๐๐", page_icon=":game_die:")
|
31 |
+
st.title("๐ฅฆ๐ฅ Healthy Eats ๐๐")
|
32 |
|
33 |
username = st.sidebar.text_input("๐ค Enter your username:")
|
34 |
num_rolls = st.sidebar.slider("๐ข Choose the number of rolls:", 1, 100, 3)
|
|
|
63 |
fig_element.plotly_chart(fig)
|
64 |
time.sleep(1)
|
65 |
|
66 |
+
df = pd.concat([pd.DataFrame(history["roll_history"]), pd.DataFrame(history["health_tokens"], columns=["Health Tokens"]), pd.DataFrame(history["coin_tokens"], columns=["Coin Tokens
|
67 |
+
|
68 |
+
#df = pd.concat([pd.DataFrame(history["roll_history"]), pd.DataFrame(history["health_tokens"], columns=["Health Tokens"]), pd.DataFrame(history["coin_tokens"], columns=["Coin Tokens"])], axis=1)
|
69 |
|
70 |
timestamp = datetime.now().strftime("%m-%d-%Y-%H-%M-%S")
|
71 |
filename = f"{username}_{timestamp}.csv"
|
|
|
74 |
|
75 |
st.markdown("""
|
76 |
|
77 |
+
๐ฃ Introducing ๐๐ฅ๐ฅฆ๐Sankey Snacks๐ฝ๐ฅ๐๐ฅค - the game that makes healthy eating fun and interactive!
|
78 |
+
๐ Are you tired of the same old boring STEM activities? Sankey Snacks is here to add some excitement to your learning experience! ๐คฉ
|
79 |
+
๐ Our game uses Sankey diagrams to show you the flow of nutrients in the food you eat. ๐ก๏ธ
|
80 |
+
๐ From crispy ๐ to crunchy ๐ฅ, Sankey Snacks makes it easy to see how the food you eat affects your body. And don't worry, we didn't forget about the occasional ๐ or ๐ treat! ๐คค
|
81 |
+
๐ Download Sankey Snacks today and start exploring the world of healthy eating in a fun and interactive way! ๐ฎ
|
82 |
+
๐ It's time to ditch the boring old textbooks and embrace the world of Sankey diagrams and healthy snacks! ๐ฅฆ๐ฅค
|
83 |
+
๐ Get ready to snack and learn with Sankey Snacks! ๐๐ฝ๐๐๐ฅ๐๐ฅ๐ฅค
|
84 |
|
85 |
""")
|