Rathapoom commited on
Commit
852a3b5
·
verified ·
1 Parent(s): e8b6e00

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -482,12 +482,12 @@ with st.sidebar:
482
  🎯 เลือกระดับการเรียนรู้
483
  </div>
484
  """, unsafe_allow_html=True)
485
-
486
  level = st.radio(
487
- "", # ไม่แสดงชื่อ label ภาษาอังกฤษ
488
  options=list(level_options.keys()),
489
  format_func=lambda x: level_options[x]['thai_name'],
490
- help="เลือกระดับที่เหมาะสมกับความสามารถของน้องๆ"
491
  )
492
 
493
  # แสดงคำอธิบายระดับ
@@ -542,7 +542,8 @@ with col1:
542
  st.text_area(
543
  "เขียนต่อจากเรื่องราว | Continue the story:",
544
  height=100,
545
- key="text_input"
 
546
  )
547
 
548
  # Submit button with callback
 
482
  🎯 เลือกระดับการเรียนรู้
483
  </div>
484
  """, unsafe_allow_html=True)
485
+
486
  level = st.radio(
487
+ "ระดับการเรียน", # เพิ่ม label
488
  options=list(level_options.keys()),
489
  format_func=lambda x: level_options[x]['thai_name'],
490
+ label_visibility="collapsed" # ซ่อน label แต่ยังคงมีสำหรับ accessibility
491
  )
492
 
493
  # แสดงคำอธิบายระดับ
 
542
  st.text_area(
543
  "เขียนต่อจากเรื่องราว | Continue the story:",
544
  height=100,
545
+ key="text_input",
546
+ label_visibility="collapsed"
547
  )
548
 
549
  # Submit button with callback