AlanOC commited on
Commit
f4dcc66
1 Parent(s): 53552a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +37 -9
app.py CHANGED
@@ -247,21 +247,49 @@ def main():
247
 
248
  with col1:
249
  st.image(f"data:image/png;base64,{avatar_1}", width=50)
250
- if st.button("Select Avatar 1"):
251
  st.session_state.user_selected_avatar = avatar_1
252
-
253
- with col2:
254
  st.image(f"data:image/png;base64,{avatar_2}", width=50)
255
- if st.button("Select Avatar 2"):
256
  st.session_state.user_selected_avatar = avatar_2
257
-
258
- with col3:
259
  st.image(f"data:image/png;base64,{avatar_3}", width=50)
260
- if st.button("Select Avatar 3"):
261
- st.session_state.user_selected_avatar = avatar_3
 
 
 
 
262
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
263
 
264
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
265
 
266
  # Create a slider widget in the sidebar
267
  ai_temp = st.sidebar.slider("Select AI Temperature", min_value=0.0, max_value=1.0, value=0.7, step=0.1)
 
247
 
248
  with col1:
249
  st.image(f"data:image/png;base64,{avatar_1}", width=50)
250
+ if st.button("Select"):
251
  st.session_state.user_selected_avatar = avatar_1
 
 
252
  st.image(f"data:image/png;base64,{avatar_2}", width=50)
253
+ if st.button("Select"):
254
  st.session_state.user_selected_avatar = avatar_2
 
 
255
  st.image(f"data:image/png;base64,{avatar_3}", width=50)
256
+ if st.button("Select"):
257
+ st.session_state.user_selected_avatar = avatar_3
258
+ st.image(f"data:image/png;base64,{avatar_4}", width=50)
259
+ if st.button("Select"):
260
+ st.session_state.user_selected_avatar = avatar_4
261
+
262
 
263
+ with col2:
264
+ st.image(f"data:image/png;base64,{avatar_5}", width=50)
265
+ if st.button("Select"):
266
+ st.session_state.user_selected_avatar = avatar_5
267
+ st.image(f"data:image/png;base64,{avatar_6}", width=50)
268
+ if st.button("Select"):
269
+ st.session_state.user_selected_avatar = avatar_6
270
+ st.image(f"data:image/png;base64,{avatar_7}", width=50)
271
+ if st.button("Select"):
272
+ st.session_state.user_selected_avatar = avatar_7
273
+ st.image(f"data:image/png;base64,{avatar_8}", width=50)
274
+ if st.button("Select Avatar 2"):
275
+ st.session_state.user_selected_avatar = avatar_8
276
+
277
 
278
+ with col3:
279
+ st.image(f"data:image/png;base64,{avatar_9}", width=50)
280
+ if st.button("Select"):
281
+ st.session_state.user_selected_avatar = avatar_9
282
+ st.image(f"data:image/png;base64,{avatar_10}", width=50)
283
+ if st.button("Select"):
284
+ st.session_state.user_selected_avatar = avatar_10
285
+ st.image(f"data:image/png;base64,{avatar_11}", width=50)
286
+ if st.button("Select"):
287
+ st.session_state.user_selected_avatar = avatar_11
288
+ st.image(f"data:image/png;base64,{avatar_12}", width=50)
289
+ if st.button("Select"):
290
+ st.session_state.user_selected_avatar = avatar_12
291
+
292
+
293
 
294
  # Create a slider widget in the sidebar
295
  ai_temp = st.sidebar.slider("Select AI Temperature", min_value=0.0, max_value=1.0, value=0.7, step=0.1)