Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -89,7 +89,7 @@ def format_quiz_text(quiz_text):
|
|
| 89 |
if line.startswith('Q'):
|
| 90 |
formatted_text += f"**{line[2:]}**\n\n" # Bold question text
|
| 91 |
elif line.startswith('A'):
|
| 92 |
-
formatted_text += f"Answer {question_number}
|
| 93 |
question_number += 1
|
| 94 |
|
| 95 |
return formatted_text.strip()
|
|
@@ -125,5 +125,9 @@ def main():
|
|
| 125 |
else:
|
| 126 |
st.error("Please type a question to get an answer.")
|
| 127 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 128 |
if __name__ == "__main__":
|
| 129 |
main()
|
|
|
|
| 89 |
if line.startswith('Q'):
|
| 90 |
formatted_text += f"**{line[2:]}**\n\n" # Bold question text
|
| 91 |
elif line.startswith('A'):
|
| 92 |
+
formatted_text += f"**Answer {question_number}:** {line[2:]}\n\n" # Clear answer text
|
| 93 |
question_number += 1
|
| 94 |
|
| 95 |
return formatted_text.strip()
|
|
|
|
| 125 |
else:
|
| 126 |
st.error("Please type a question to get an answer.")
|
| 127 |
|
| 128 |
+
# Add credits section
|
| 129 |
+
st.markdown("---")
|
| 130 |
+
st.markdown("**Developed for NU Students by Mohamed Hafez**")
|
| 131 |
+
|
| 132 |
if __name__ == "__main__":
|
| 133 |
main()
|