Spaces:
Sleeping
Sleeping
Update app.py
Browse files2 unmodified lines345678956 unmodified lines66676869707172734 unmodified lines787980818283848586872 unmodified linesimport joblib# ===== Load model =====model = joblib.load("D:/Pycharm/Project3/TomekLinks_rf_model.pkl")# ===== Setup page =====st.set_page_config(page_title="Dự đoán tốt nghiệp đúng hạn", page_icon="🎓", layout="wide")56 unmodified lines# ===== THÔNG TIN CÁ NHÂN =====with st.container():sample_option = st.selectbox("📝 Chọn cách nhập dữ liệu:",["Tự nhập tay", "Dùng ví dụ mẫu ngành Công nghệ thông tin", "Dùng ví dụ mẫu ngành Kinh tế"])if sample_option == "Dùng ví dụ mẫu ngành Công nghệ thông tin":4 unmodified linesname = st.text_input("👤 Họ và tên", value=sample_kinhte_example["name"])student_id = st.text_input("🎓 Mã sinh viên", value=sample_kinhte_example["student_id"])major = st.selectbox("📚 Ngành học", ["Công nghệ thông tin", "Kinh tế"], index=1)else:name = st.text_input("👤 Họ và tên")student_id = st.text_input("🎓 Mã sinh viên")major = st.selectbox("📚 Ngành học", ["Công nghệ thông tin", "Kinh tế"])st.write("---")2 unmodified lines345678956 unmodified lines66676869707172734 unmodified lines7879808182832 unmodified linesimport joblib# ===== Load model =====model = joblib.load("TomekLinks_rf_model.pkl")# ===== Setup page =====st.set_page_config(page_title="Dự đoán tốt nghiệp đúng hạn", page_icon="🎓", layout="wide")56 unmodified lines# ===== THÔNG TIN CÁ NHÂN =====with st.container():sample_option = st.selectbox("📝 Chọn ví dụ:",["Dùng ví dụ mẫu ngành Công nghệ thông tin", "Dùng ví dụ mẫu ngành Kinh tế"])if sample_option == "Dùng ví dụ mẫu ngành Công nghệ thông tin":4 unmodified linesname = st.text_input("👤 Họ và tên", value=sample_kinhte_example["name"])student_id = st.text_input("🎓 Mã sinh viên", value=sample_kinhte_example["student_id"])major = st.selectbox("📚 Ngành học", ["Công nghệ thông tin", "Kinh tế"], index=1)st.write("---")
app.py+3-7