Update app.py
Browse files
app.py
CHANGED
|
@@ -294,16 +294,12 @@ if nav_option == "Generate Questions":
|
|
| 294 |
question_list = st.session_state.questions
|
| 295 |
index = st.session_state.question_index
|
| 296 |
|
| 297 |
-
# Debugging information
|
| 298 |
-
st.write(f"**Current Index:** {index}")
|
| 299 |
-
st.write(f"**Total Questions:** {len(question_list)}")
|
| 300 |
-
|
| 301 |
if index < len(question_list):
|
| 302 |
st.write(f"**Question {index + 1}:** {question_list[index]}")
|
| 303 |
|
| 304 |
# Answer input box
|
| 305 |
answer = st.text_area("Your Answer", key="text_area_answer")
|
| 306 |
-
|
| 307 |
col1, col2 = st.columns(2)
|
| 308 |
with col1:
|
| 309 |
if index > 0:
|
|
@@ -345,5 +341,3 @@ st.markdown("""
|
|
| 345 |
</div>
|
| 346 |
""", unsafe_allow_html=True)
|
| 347 |
|
| 348 |
-
|
| 349 |
-
|
|
|
|
| 294 |
question_list = st.session_state.questions
|
| 295 |
index = st.session_state.question_index
|
| 296 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 297 |
if index < len(question_list):
|
| 298 |
st.write(f"**Question {index + 1}:** {question_list[index]}")
|
| 299 |
|
| 300 |
# Answer input box
|
| 301 |
answer = st.text_area("Your Answer", key="text_area_answer")
|
| 302 |
+
|
| 303 |
col1, col2 = st.columns(2)
|
| 304 |
with col1:
|
| 305 |
if index > 0:
|
|
|
|
| 341 |
</div>
|
| 342 |
""", unsafe_allow_html=True)
|
| 343 |
|
|
|
|
|
|