Update pages/pages_5_QuizMaster.py
Browse files
pages/pages_5_QuizMaster.py
CHANGED
@@ -338,8 +338,8 @@ def calculate_score(player_choice):
|
|
338 |
|
339 |
#category = st.sidebar.selectbox("Category: ", ['Phonics','Numeracy','Writing','Reading'], index= None, placeholder= "Select one: ", disabled=(st.session_state.running))
|
340 |
|
341 |
-
if '
|
342 |
-
st.session_state['
|
343 |
# st.session_state.disable_opt = True
|
344 |
# category = st.sidebar.selectbox("Category: ", list(categories_option.keys()), index= None, placeholder= "Select one: ", disabled=(st.session_state.running))
|
345 |
col1, col2 = st.columns([0.6, 0.4],gap="medium")
|
@@ -415,5 +415,5 @@ with col2:
|
|
415 |
st.session_state['img_path2'] = get_image(st.session_state['img_prompt2'])
|
416 |
del st.session_state['img_prompt2']
|
417 |
|
418 |
-
st.image(st.session_state['
|
419 |
st.markdown("---")
|
|
|
338 |
|
339 |
#category = st.sidebar.selectbox("Category: ", ['Phonics','Numeracy','Writing','Reading'], index= None, placeholder= "Select one: ", disabled=(st.session_state.running))
|
340 |
|
341 |
+
if 'img_path2' not in st.session_state:
|
342 |
+
st.session_state['img_path2']="image.png"
|
343 |
# st.session_state.disable_opt = True
|
344 |
# category = st.sidebar.selectbox("Category: ", list(categories_option.keys()), index= None, placeholder= "Select one: ", disabled=(st.session_state.running))
|
345 |
col1, col2 = st.columns([0.6, 0.4],gap="medium")
|
|
|
415 |
st.session_state['img_path2'] = get_image(st.session_state['img_prompt2'])
|
416 |
del st.session_state['img_prompt2']
|
417 |
|
418 |
+
st.image(st.session_state['img_path2'], caption="Generated Image", width=300)
|
419 |
st.markdown("---")
|