Update app.py
Browse files
app.py
CHANGED
@@ -482,12 +482,12 @@ with st.sidebar:
|
|
482 |
🎯 เลือกระดับการเรียนรู้
|
483 |
</div>
|
484 |
""", unsafe_allow_html=True)
|
485 |
-
|
486 |
level = st.radio(
|
487 |
-
"", #
|
488 |
options=list(level_options.keys()),
|
489 |
format_func=lambda x: level_options[x]['thai_name'],
|
490 |
-
|
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
|