Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import web3
|
|
| 6 |
total_number_pages = 7
|
| 7 |
placeholder_buttons = None
|
| 8 |
|
| 9 |
-
Q3_radio_options = ["
|
| 10 |
Q4_radio_options = ["Option 1 Radio","Option 2 Radio"]
|
| 11 |
Q5_radio_options = ["Green","Red","Blue","Yellow"]
|
| 12 |
Q6_radio_options = ["Yes","No","Ur dumb"]
|
|
@@ -15,8 +15,7 @@ Q9_radio_options = ["IDK","Of Course","STFU!!!!!","Inner demons"]
|
|
| 15 |
|
| 16 |
# Function that records radio element changes
|
| 17 |
def radio_change(element, state, key):
|
| 18 |
-
|
| 19 |
-
st.write(element)
|
| 20 |
|
| 21 |
# Function that disables the last button while data is uploaded to IPFS
|
| 22 |
def button_disable():
|
|
|
|
| 6 |
total_number_pages = 7
|
| 7 |
placeholder_buttons = None
|
| 8 |
|
| 9 |
+
Q3_radio_options = ["Option1","Option2"]
|
| 10 |
Q4_radio_options = ["Option 1 Radio","Option 2 Radio"]
|
| 11 |
Q5_radio_options = ["Green","Red","Blue","Yellow"]
|
| 12 |
Q6_radio_options = ["Yes","No","Ur dumb"]
|
|
|
|
| 15 |
|
| 16 |
# Function that records radio element changes
|
| 17 |
def radio_change(element, state, key):
|
| 18 |
+
st.session_state[state] = element.index(st.session_state[key]) # Setting previously selected option
|
|
|
|
| 19 |
|
| 20 |
# Function that disables the last button while data is uploaded to IPFS
|
| 21 |
def button_disable():
|