Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -99,8 +99,8 @@ def start_quiz():
|
|
99 |
st.error("데이터를 불러올 수 없습니다. 데이터셋을 확인해주세요.")
|
100 |
return
|
101 |
|
102 |
-
|
103 |
-
st.session_state.questions = df.iloc[:10]
|
104 |
st.session_state.current_step = 'quiz'
|
105 |
st.session_state.current_question_index = 0
|
106 |
st.session_state.wrong_questions = []
|
|
|
99 |
st.error("데이터를 불러올 수 없습니다. 데이터셋을 확인해주세요.")
|
100 |
return
|
101 |
|
102 |
+
st.session_state.questions = df.sample(n=10, random_state=42)
|
103 |
+
#st.session_state.questions = df.iloc[:10]
|
104 |
st.session_state.current_step = 'quiz'
|
105 |
st.session_state.current_question_index = 0
|
106 |
st.session_state.wrong_questions = []
|