farimafatahi commited on
Commit
424c3db
·
verified ·
1 Parent(s): 25e0148

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -79,9 +79,9 @@ st.markdown(
79
  st.markdown('<div class="container">', unsafe_allow_html=True)
80
 
81
  # Convert the image to base64
82
- # buffered = BytesIO()
83
- # logo_image.save(buffered, format="PNG")
84
- # img_data = base64.b64encode(buffered.getvalue()).decode("utf-8")
85
  st.markdown(
86
  f"""
87
  <style>
@@ -96,7 +96,7 @@ st.markdown(
96
  }}
97
  </style>
98
  <div class="logo-container">
99
- <img src="data:image/png,{st.image(logo_image, output_format="PNG")}" alt="FactBench Leaderboard Logo">
100
  </div>
101
  """,
102
  unsafe_allow_html=True
 
79
  st.markdown('<div class="container">', unsafe_allow_html=True)
80
 
81
  # Convert the image to base64
82
+ buffered = BytesIO()
83
+ logo_image.save(buffered, format="PNG")
84
+ img_data = base64.b64encode(buffered.getvalue()).decode("utf-8")
85
  st.markdown(
86
  f"""
87
  <style>
 
96
  }}
97
  </style>
98
  <div class="logo-container">
99
+ <img src="data:image/png,{img_data}" alt="FactBench Leaderboard Logo">
100
  </div>
101
  """,
102
  unsafe_allow_html=True