farimafatahi commited on
Commit
51cb0a1
·
verified ·
1 Parent(s): e2dd097

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -76,6 +76,10 @@ st.markdown(
76
  # Display title and description
77
  st.markdown('<div class="container">', unsafe_allow_html=True)
78
 
 
 
 
 
79
  st.markdown(
80
  f"""
81
  <style>
@@ -89,7 +93,7 @@ st.markdown(
89
  }}
90
  </style>
91
  <div class="logo-container">
92
- <img src="data:image/png;base64,{logo_image}" alt="FactBench Leaderboard Logo">
93
  </div>
94
  """,
95
  unsafe_allow_html=True
 
76
  # Display title and description
77
  st.markdown('<div class="container">', unsafe_allow_html=True)
78
 
79
+ # Convert the image to base64
80
+ buffered = BytesIO()
81
+ logo_image.save(buffered, format="PNG")
82
+ img_data = base64.b64encode(buffered.getvalue()).decode("utf-8")
83
  st.markdown(
84
  f"""
85
  <style>
 
93
  }}
94
  </style>
95
  <div class="logo-container">
96
+ <img src="data:image/png;base64,{img_data}" alt="FactBench Leaderboard Logo">
97
  </div>
98
  """,
99
  unsafe_allow_html=True