awacke1 commited on
Commit
ff3bb62
โ€ข
1 Parent(s): b2857d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -51,7 +51,7 @@ for i in range(10):
51
  st.write(f"๐ŸŽ‰ Congratulations! You got the {FOOD_LIST[dice_type]} jackpot! ๐Ÿ’ฐ Adding 3 coins.")
52
  coin_tokens_added += 3
53
  if roll == max(rolls):
54
- st.write(f"๐ŸŽ‰ Congratulations! You got the {FOOD_LIST[dice_type]} maximum value! ๐Ÿ’– Adding 10 health tokens.")
55
  if dice_type == 100:
56
  history["health_tokens"].append(history["health_tokens"][-1] + 10)
57
 
@@ -63,9 +63,7 @@ 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
- #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"
 
51
  st.write(f"๐ŸŽ‰ Congratulations! You got the {FOOD_LIST[dice_type]} jackpot! ๐Ÿ’ฐ Adding 3 coins.")
52
  coin_tokens_added += 3
53
  if roll == max(rolls):
54
+ st.write(f"๐ŸŽ‰ Congratulations! You got the {FOOD_LIST[dice_type]} maximum value! ๐Ÿ’– Adding 10 health tokens. ๐Ÿ“Sankey Snacks!๐ŸŒฝ")
55
  if dice_type == 100:
56
  history["health_tokens"].append(history["health_tokens"][-1] + 10)
57
 
 
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"