Sina Media Lab
commited on
Commit
·
c1018ca
1
Parent(s):
45705e3
Updates
Browse files
app.py
CHANGED
|
@@ -37,8 +37,10 @@ def generate_pdf_report():
|
|
| 37 |
pdf.add_page()
|
| 38 |
pdf.set_font("Arial", style='B', size=18)
|
| 39 |
|
| 40 |
-
# Title of the report
|
| 41 |
-
pdf.
|
|
|
|
|
|
|
| 42 |
pdf.ln(5)
|
| 43 |
|
| 44 |
# Load the image from the URL, scaled down and centered
|
|
@@ -153,7 +155,11 @@ modules = load_modules()
|
|
| 153 |
st.sidebar.markdown(
|
| 154 |
"""
|
| 155 |
<div style='background-color: white; padding: 10px; border-radius: 10px; text-align: center; color: black;'>
|
| 156 |
-
<h1 style='margin: 0;'
|
|
|
|
|
|
|
|
|
|
|
|
|
| 157 |
<a href="https://ghassem.com" target="_blank">
|
| 158 |
<img src="https://huggingface.co/spaces/tofighi/math/resolve/main/assets/gt.png" alt="Logo" style="width:50%; margin-top: 10px;">
|
| 159 |
</a>
|
|
|
|
| 37 |
pdf.add_page()
|
| 38 |
pdf.set_font("Arial", style='B', size=18)
|
| 39 |
|
| 40 |
+
# Title of the report with a link
|
| 41 |
+
pdf.set_text_color(0, 0, 255) # Set color to blue for the link
|
| 42 |
+
pdf.cell(0, 10, txt="🪄 Magic Math Quiz!", ln=True, align="C", link="https://huggingface.co/spaces/tofighi/math")
|
| 43 |
+
pdf.set_text_color(0, 0, 0) # Reset color to black
|
| 44 |
pdf.ln(5)
|
| 45 |
|
| 46 |
# Load the image from the URL, scaled down and centered
|
|
|
|
| 155 |
st.sidebar.markdown(
|
| 156 |
"""
|
| 157 |
<div style='background-color: white; padding: 10px; border-radius: 10px; text-align: center; color: black;'>
|
| 158 |
+
<h1 style='margin: 0;'>
|
| 159 |
+
<a href="https://huggingface.co/spaces/tofighi/math" target="_blank" style="color: black; text-decoration: none;">
|
| 160 |
+
🪄 Magic Math Quiz!<sup>Beta</sup>
|
| 161 |
+
</a>
|
| 162 |
+
</h1>
|
| 163 |
<a href="https://ghassem.com" target="_blank">
|
| 164 |
<img src="https://huggingface.co/spaces/tofighi/math/resolve/main/assets/gt.png" alt="Logo" style="width:50%; margin-top: 10px;">
|
| 165 |
</a>
|