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