Spaces:
Runtime error
Runtime error
init vars
Browse files
pages/1_Disentanglement.py
CHANGED
@@ -42,6 +42,10 @@ concepts = './data/concepts.txt'
|
|
42 |
with open(concepts) as f:
|
43 |
labels = [line.strip() for line in f.readlines()]
|
44 |
|
|
|
|
|
|
|
|
|
45 |
# def on_change_random_input():
|
46 |
# st.session_state.image_id = st.session_state.image_id
|
47 |
|
|
|
42 |
with open(concepts) as f:
|
43 |
labels = [line.strip() for line in f.readlines()]
|
44 |
|
45 |
+
if 'image_id' not in st.session_state:
|
46 |
+
st.session_state.image_id = 0
|
47 |
+
if 'concept_id' not in st.session_state:
|
48 |
+
st.session_state.concept_id = ''
|
49 |
# def on_change_random_input():
|
50 |
# st.session_state.image_id = st.session_state.image_id
|
51 |
|