Sina Media Lab
commited on
Commit
·
eda0b5b
1
Parent(s):
9935146
Updates
Browse files- app.py +4 -2
- assets/gt.png +0 -0
app.py
CHANGED
@@ -42,7 +42,9 @@ def generate_pdf_report():
|
|
42 |
pdf.set_font("Arial", size=10)
|
43 |
pdf.cell(0, 10, txt="by Ghassem Tofighi", ln=True, align="C", link="https://ghassem.com")
|
44 |
pdf.ln(5)
|
45 |
-
|
|
|
|
|
46 |
pdf.ln(10)
|
47 |
|
48 |
for i, entry in enumerate(st.session_state.questions):
|
@@ -148,7 +150,7 @@ st.sidebar.markdown(
|
|
148 |
<div style='background-color: white; padding: 10px; border-radius: 10px; text-align: center; color: black;'>
|
149 |
<h1 style='margin: 0;'>🪄 Magic Math Quiz!</h1>
|
150 |
<a href="https://ghassem.com" target="_blank">
|
151 |
-
<img src="
|
152 |
</a>
|
153 |
<h6 style='margin: 0; font-size: 10px;'><a href="https://ghassem.com" target="_blank" style="color: black; text-decoration: none;'>By Ghassem Tofighi</a></h6>
|
154 |
</div>
|
|
|
42 |
pdf.set_font("Arial", size=10)
|
43 |
pdf.cell(0, 10, txt="by Ghassem Tofighi", ln=True, align="C", link="https://ghassem.com")
|
44 |
pdf.ln(5)
|
45 |
+
|
46 |
+
# Load the image from the local directory
|
47 |
+
pdf.image("assets/gt.png", x=80, w=50, link="https://ghassem.com")
|
48 |
pdf.ln(10)
|
49 |
|
50 |
for i, entry in enumerate(st.session_state.questions):
|
|
|
150 |
<div style='background-color: white; padding: 10px; border-radius: 10px; text-align: center; color: black;'>
|
151 |
<h1 style='margin: 0;'>🪄 Magic Math Quiz!</h1>
|
152 |
<a href="https://ghassem.com" target="_blank">
|
153 |
+
<img src="assets/gt.png" alt="Logo" style="width:40%; border-radius: 5px;">
|
154 |
</a>
|
155 |
<h6 style='margin: 0; font-size: 10px;'><a href="https://ghassem.com" target="_blank" style="color: black; text-decoration: none;'>By Ghassem Tofighi</a></h6>
|
156 |
</div>
|
assets/gt.png
ADDED
![]() |