namngo commited on
Commit
159b4b9
·
verified ·
1 Parent(s): 8c56e59

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -249,8 +249,8 @@ else:
249
  example_data = sample_cntt_example_simple if sample_option == "Dùng ví dụ mẫu ngành Công nghệ thông tin" else sample_kinhte_example_simple if sample_option == "Dùng ví dụ mẫu ngành Kinh tế" else None
250
  default_values = example_data["semester_data"][idx*3:(idx+1)*3] if example_data else None # Fix this line to slice 3 values per semester (Số tín chỉ đạt, Số tín chỉ nợ, GPA)
251
 
252
- # Use expander to group each semester's fields in a collapsible box
253
- if idx < 3: # First row (3 boxes)
254
  with st.expander(f"📘 {sem}", expanded=True):
255
  col1, col2, col3 = st.columns(3) # 3 columns for the first row
256
  with col1:
 
249
  example_data = sample_cntt_example_simple if sample_option == "Dùng ví dụ mẫu ngành Công nghệ thông tin" else sample_kinhte_example_simple if sample_option == "Dùng ví dụ mẫu ngành Kinh tế" else None
250
  default_values = example_data["semester_data"][idx*3:(idx+1)*3] if example_data else None # Fix this line to slice 3 values per semester (Số tín chỉ đạt, Số tín chỉ nợ, GPA)
251
 
252
+ # First row (3 boxes)
253
+ if idx < 3:
254
  with st.expander(f"📘 {sem}", expanded=True):
255
  col1, col2, col3 = st.columns(3) # 3 columns for the first row
256
  with col1: