Jan Biermeyer commited on
Commit
429dc7a
·
1 Parent(s): c889d26

Fix f-string syntax error in logo HTML

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -706,6 +706,12 @@ def main():
706
  # Header with logo and title
707
  logo_b64 = load_logo()
708
 
 
 
 
 
 
 
709
  # Create hero section matching launch page
710
  col1, col2, col3 = st.columns([1, 2, 1])
711
 
@@ -714,7 +720,7 @@ def main():
714
  <div class="main-header">
715
  <div style="display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;">
716
  <div class="float-animation">
717
- {"<img src=\"" + logo_b64 + "\" class=\"glow-box\" style=\"width: 128px; height: 128px; object-fit: contain; margin: 0 auto;\" />" if logo_b64 else "<div style=\"width: 128px; height: 128px;\"></div>"}
718
  </div>
719
  <div style="text-align: center;">
720
  <h1 class="supra-title gradient-text">Intelligence Unchained</h1>
 
706
  # Header with logo and title
707
  logo_b64 = load_logo()
708
 
709
+ # Build logo HTML (avoid backslashes in f-string expressions)
710
+ if logo_b64:
711
+ logo_html = f'<img src="{logo_b64}" class="glow-box" style="width: 128px; height: 128px; object-fit: contain; margin: 0 auto;" />'
712
+ else:
713
+ logo_html = '<div style="width: 128px; height: 128px;"></div>'
714
+
715
  # Create hero section matching launch page
716
  col1, col2, col3 = st.columns([1, 2, 1])
717
 
 
720
  <div class="main-header">
721
  <div style="display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;">
722
  <div class="float-animation">
723
+ {logo_html}
724
  </div>
725
  <div style="text-align: center;">
726
  <h1 class="supra-title gradient-text">Intelligence Unchained</h1>