farimafatahi
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
import streamlit as st
|
2 |
import pandas as pd
|
3 |
from PIL import Image
|
|
|
|
|
4 |
|
5 |
# Set up page config
|
6 |
st.set_page_config(
|
@@ -75,22 +77,23 @@ st.markdown(
|
|
75 |
st.markdown('<div class="container">', unsafe_allow_html=True)
|
76 |
|
77 |
st.markdown(
|
78 |
-
"""
|
79 |
<style>
|
80 |
-
.logo-container {
|
81 |
display: flex;
|
82 |
justify-content: flex-start; /* Aligns to the left */
|
83 |
-
}
|
84 |
-
.logo-container img {
|
85 |
-
width:
|
86 |
-
max-width:
|
87 |
-
}
|
88 |
</style>
|
89 |
<div class="logo-container">
|
90 |
-
<img src="data:image/png,{
|
91 |
</div>
|
92 |
-
"""
|
93 |
-
unsafe_allow_html=True
|
|
|
94 |
# st.image(logo_image, wi)
|
95 |
# st.markdown('<div class="title">FactBench Leaderboard</div>',
|
96 |
# unsafe_allow_html=True)
|
|
|
1 |
import streamlit as st
|
2 |
import pandas as pd
|
3 |
from PIL import Image
|
4 |
+
import base64
|
5 |
+
from io import BytesIO
|
6 |
|
7 |
# Set up page config
|
8 |
st.set_page_config(
|
|
|
77 |
st.markdown('<div class="container">', unsafe_allow_html=True)
|
78 |
|
79 |
st.markdown(
|
80 |
+
f"""
|
81 |
<style>
|
82 |
+
.logo-container {{
|
83 |
display: flex;
|
84 |
justify-content: flex-start; /* Aligns to the left */
|
85 |
+
}}
|
86 |
+
.logo-container img {{
|
87 |
+
width: 50%; /* Adjust this to control the width, e.g., 50% of container width */
|
88 |
+
max-width: 300px; /* Set a maximum width */
|
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
|
96 |
+
)
|
97 |
# st.image(logo_image, wi)
|
98 |
# st.markdown('<div class="title">FactBench Leaderboard</div>',
|
99 |
# unsafe_allow_html=True)
|