awacke1 commited on
Commit
c8e8bdc
โ€ข
1 Parent(s): a0c6530

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -10
app.py CHANGED
@@ -6,7 +6,7 @@ from datetime import datetime
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,8 +27,8 @@ def plot_tokens(health_tokens, coin_tokens):
27
  ))
28
  return fig
29
 
30
- st.set_page_config(page_title="๐Ÿ”๐ŸŸ Emojitrition ๐ŸŒฎ๐Ÿ•", page_icon=":game_die:")
31
- st.title("๐Ÿ”๐ŸŸ Emojitrition ๐ŸŒฎ๐Ÿ•")
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"])], axis=1)
 
 
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 Emojitrition - the fun and easy way to track your nutrition! ๐Ÿ”๐ŸŸ๐ŸŒฎ๐Ÿ•๐Ÿฉ๐Ÿฅ—๐Ÿฃ๐Ÿพ
76
- ๐Ÿ‘‰ Sick of boring nutrition tracking apps? Emojitrition is here to spice things up! ๐ŸŒถ๏ธ
77
- ๐Ÿ‘‰ Our app uses food nutrition emojis to make tracking your meals easy and fun. ๐Ÿด
78
- ๐Ÿ‘‰ Whether you're making healthy choices with ๐Ÿฅ— or indulging in some ๐Ÿฉ, Emojitrition makes it easy to see how your meals add up.
79
- ๐Ÿ‘‰ Download Emojitrition today and start making more informed choices for your health and well-being! ๐Ÿ“ฒ
80
- ๐Ÿ‘‰ It's time to ditch the boring old numbers and words and embrace the world of nutrition emojis! ๐Ÿ™Œ
 
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
  """)