Sina Media Lab
commited on
Commit
·
ffbf590
1
Parent(s):
d4c89e6
Updates
Browse files
app.py
CHANGED
@@ -178,6 +178,8 @@ if selected_category:
|
|
178 |
)
|
179 |
|
180 |
with col2:
|
|
|
|
|
181 |
# Show PDF report button, initially disabled until a question is answered
|
182 |
pdf_disabled = len(st.session_state.questions) == 0
|
183 |
st.download_button(
|
@@ -186,8 +188,7 @@ if selected_category:
|
|
186 |
file_name="quiz_report.pdf",
|
187 |
mime="application/pdf",
|
188 |
disabled=pdf_disabled,
|
189 |
-
key="pdf_download_button"
|
190 |
-
style="margin-top: 20px;"
|
191 |
)
|
192 |
|
193 |
if selected_module != st.session_state.current_module:
|
@@ -274,6 +275,5 @@ if submit_button:
|
|
274 |
file_name="quiz_report.pdf",
|
275 |
mime="application/pdf",
|
276 |
disabled=False,
|
277 |
-
key="pdf_download_button_updated"
|
278 |
-
style="margin-top: 20px;"
|
279 |
)
|
|
|
178 |
)
|
179 |
|
180 |
with col2:
|
181 |
+
# Add some spacing above the button by placing it inside an empty container
|
182 |
+
st.markdown("<div style='margin-top: 20px;'></div>", unsafe_allow_html=True)
|
183 |
# Show PDF report button, initially disabled until a question is answered
|
184 |
pdf_disabled = len(st.session_state.questions) == 0
|
185 |
st.download_button(
|
|
|
188 |
file_name="quiz_report.pdf",
|
189 |
mime="application/pdf",
|
190 |
disabled=pdf_disabled,
|
191 |
+
key="pdf_download_button"
|
|
|
192 |
)
|
193 |
|
194 |
if selected_module != st.session_state.current_module:
|
|
|
275 |
file_name="quiz_report.pdf",
|
276 |
mime="application/pdf",
|
277 |
disabled=False,
|
278 |
+
key="pdf_download_button_updated"
|
|
|
279 |
)
|