Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -88,7 +88,7 @@ def start_quiz():
|
|
88 |
"""ํด์ฆ ์์ ๋ฐ ์ด๊ธฐํ"""
|
89 |
|
90 |
#selected_indexes = [3404, 12977, 3896, 3852, 3589, 12038, 7602, 3473, 1878, 9752, 3946, 2519, 1302, 9]
|
91 |
-
selected_indexes = [2519, 3946, 3404, 3896, 7602, 3852, 12977, 1878, 1302, 3473] #
|
92 |
|
93 |
# 3887 ๋ต์ ํ๋ฆผ
|
94 |
# 9699 ์์ ์ด์
|
@@ -99,8 +99,8 @@ def start_quiz():
|
|
99 |
st.error("๋ฐ์ดํฐ๋ฅผ ๋ถ๋ฌ์ฌ ์ ์์ต๋๋ค. ๋ฐ์ดํฐ์
์ ํ์ธํด์ฃผ์ธ์.")
|
100 |
return
|
101 |
|
102 |
-
st.session_state.questions = df.sample(n=10, random_state=42)
|
103 |
-
|
104 |
st.session_state.current_step = 'quiz'
|
105 |
st.session_state.current_question_index = 0
|
106 |
st.session_state.wrong_questions = []
|
|
|
88 |
"""ํด์ฆ ์์ ๋ฐ ์ด๊ธฐํ"""
|
89 |
|
90 |
#selected_indexes = [3404, 12977, 3896, 3852, 3589, 12038, 7602, 3473, 1878, 9752, 3946, 2519, 1302, 9]
|
91 |
+
selected_indexes = [2519, 3946, 3404, 3896, 7602, 3852, 12977, 1878, 1302, 3473] #9, 12038
|
92 |
|
93 |
# 3887 ๋ต์ ํ๋ฆผ
|
94 |
# 9699 ์์ ์ด์
|
|
|
99 |
st.error("๋ฐ์ดํฐ๋ฅผ ๋ถ๋ฌ์ฌ ์ ์์ต๋๋ค. ๋ฐ์ดํฐ์
์ ํ์ธํด์ฃผ์ธ์.")
|
100 |
return
|
101 |
|
102 |
+
#st.session_state.questions = df.sample(n=10, random_state=42)
|
103 |
+
st.session_state.questions = df
|
104 |
st.session_state.current_step = 'quiz'
|
105 |
st.session_state.current_question_index = 0
|
106 |
st.session_state.wrong_questions = []
|