Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -668,15 +668,15 @@ with tab3:
|
|
| 668 |
questions = [f"What is the main concept in: '{s[:70]}'?" for s in sentences if len(s) > 10]
|
| 669 |
|
| 670 |
if questions:
|
| 671 |
-
|
| 672 |
-
|
| 673 |
-
|
| 674 |
-
|
| 675 |
-
|
| 676 |
-
|
| 677 |
-
|
| 678 |
-
|
| 679 |
-
|
| 680 |
st.markdown('</div></div>', unsafe_allow_html=True)
|
| 681 |
st.session_state["quiz"] = questions
|
| 682 |
else:
|
|
|
|
| 668 |
questions = [f"What is the main concept in: '{s[:70]}'?" for s in sentences if len(s) > 10]
|
| 669 |
|
| 670 |
if questions:
|
| 671 |
+
st.markdown("<h4 style='color: white; text-shadow: 0 2px 4px rgba(0,0,0,0.3);'>📝 Generated Quiz Questions</h4>", unsafe_allow_html=True)
|
| 672 |
+
st.markdown('<div class="quiz-container">', unsafe_allow_html=True)
|
| 673 |
+
for i, q in enumerate(questions, 1):
|
| 674 |
+
st.markdown(f"""
|
| 675 |
+
<div class='quiz-question-card'>
|
| 676 |
+
<strong>Question {i}:</strong> <span style='color: white;'>{q}</span>
|
| 677 |
+
</div>
|
| 678 |
+
""", unsafe_allow_html=True)
|
| 679 |
+
st.markdown('</div>', unsafe_allow_html=True)
|
| 680 |
st.markdown('</div></div>', unsafe_allow_html=True)
|
| 681 |
st.session_state["quiz"] = questions
|
| 682 |
else:
|