Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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"
|