Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ if st.session_state.stage == 0:
|
|
50 |
|
51 |
st.session_state.n_buttons = st.slider(label="How many buttons to play with?", min_value=2, max_value=5,value=2)
|
52 |
|
53 |
-
st.markdown(f'You will be presented with {st.session_state.n_buttons} to randomly choose from')
|
54 |
|
55 |
st.markdown("At each round, I will try to predict which button you click :-)")
|
56 |
st.markdown(f"If I get it right, I earn {st.session_state.n_buttons-1} point(s), otherwise you earn 1 point")
|
@@ -124,7 +124,8 @@ if st.session_state.stage == 1:
|
|
124 |
for i,col in enumerate(cols):
|
125 |
col.button(str(i),on_click=user_select, args=[str(i),choice],
|
126 |
use_container_width=True)
|
127 |
-
|
|
|
128 |
st.plotly_chart(px.line(st.session_state.pnl), use_container_width=True)
|
129 |
|
130 |
st.button('Start over', on_click=reset_game, args=[],
|
|
|
50 |
|
51 |
st.session_state.n_buttons = st.slider(label="How many buttons to play with?", min_value=2, max_value=5,value=2)
|
52 |
|
53 |
+
st.markdown(f'You will be presented with {st.session_state.n_buttons} buttons to randomly choose from')
|
54 |
|
55 |
st.markdown("At each round, I will try to predict which button you click :-)")
|
56 |
st.markdown(f"If I get it right, I earn {st.session_state.n_buttons-1} point(s), otherwise you earn 1 point")
|
|
|
124 |
for i,col in enumerate(cols):
|
125 |
col.button(str(i),on_click=user_select, args=[str(i),choice],
|
126 |
use_container_width=True)
|
127 |
+
|
128 |
+
st.title('My earnings so far... :-)')
|
129 |
st.plotly_chart(px.line(st.session_state.pnl), use_container_width=True)
|
130 |
|
131 |
st.button('Start over', on_click=reset_game, args=[],
|