CarolineM5 commited on
Commit
04a844f
·
verified ·
1 Parent(s): 2ea33c1

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -71,7 +71,7 @@ if "list_pair_ID" not in st.session_state:
71
  # Intro page
72
  # -------------------------
73
  if st.session_state.page == "intro":
74
- st.title("Wood Evaluation Study")
75
  st.markdown(
76
  """
77
  **Welcome!**
@@ -108,7 +108,7 @@ if st.session_state.page == "intro":
108
  # Evaluation page
109
  # -------------------------
110
  if st.session_state.page == "evaluation":
111
- st.title("Wood Evaluation")
112
  # st.write(f"User: **{st.session_state.user_name}**")
113
 
114
  # If all pairs have been evaluated, display a message and save the results
@@ -166,7 +166,9 @@ if st.session_state.page == "evaluation":
166
  pair = st.session_state.list_pair[st.session_state.current_index]
167
 
168
  img1 = Image.open(pair[0][1])
 
169
  img2 = Image.open(pair[1][1])
 
170
 
171
 
172
  # Affichage dans deux colonnes avec radio buttons sous chacune
 
71
  # Intro page
72
  # -------------------------
73
  if st.session_state.page == "intro":
74
+ st.title("AI Wood Generation Evaluation Study")
75
  st.markdown(
76
  """
77
  **Welcome!**
 
108
  # Evaluation page
109
  # -------------------------
110
  if st.session_state.page == "evaluation":
111
+ st.title("AI Wood Generation Evaluation")
112
  # st.write(f"User: **{st.session_state.user_name}**")
113
 
114
  # If all pairs have been evaluated, display a message and save the results
 
166
  pair = st.session_state.list_pair[st.session_state.current_index]
167
 
168
  img1 = Image.open(pair[0][1])
169
+ img1 = img1.convert("L")
170
  img2 = Image.open(pair[1][1])
171
+ img2 = img2.convert("L")
172
 
173
 
174
  # Affichage dans deux colonnes avec radio buttons sous chacune