Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -33,22 +33,8 @@ def main():
|
|
33 |
|
34 |
# Sidebar instructions and link
|
35 |
st.sidebar.title("Generate a Label to Display your [AI Energy Score](https://huggingface.co/spaces/AIEnergyScore/Leaderboard) ")
|
36 |
-
|
37 |
-
|
38 |
-
"""
|
39 |
-
<style>
|
40 |
-
.sidebar-divider {
|
41 |
-
border-left: 2px solid gray;
|
42 |
-
height: 100vh;
|
43 |
-
position: absolute;
|
44 |
-
left: 100%;
|
45 |
-
top: 0;
|
46 |
-
}
|
47 |
-
</style>
|
48 |
-
<div class="sidebar-divider"></div>
|
49 |
-
""",
|
50 |
-
unsafe_allow_html=True
|
51 |
-
)
|
52 |
# Load CSV
|
53 |
try:
|
54 |
data_df = pd.read_csv("data.csv")
|
@@ -108,8 +94,13 @@ def main():
|
|
108 |
mime="image/png"
|
109 |
)
|
110 |
|
111 |
-
st.sidebar.write("#### 3. Share your label in technical reports, announcements,
|
112 |
-
|
|
|
|
|
|
|
|
|
|
|
113 |
|
114 |
def create_label_single_pass(background_image, model_data, final_size=(520, 728)):
|
115 |
"""
|
|
|
33 |
|
34 |
# Sidebar instructions and link
|
35 |
st.sidebar.title("Generate a Label to Display your [AI Energy Score](https://huggingface.co/spaces/AIEnergyScore/Leaderboard) ")
|
36 |
+
st.sidebar.markdown("<hr style='border: 1px solid gray; margin: 15px 0;'>", unsafe_allow_html=True)
|
37 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
# Load CSV
|
39 |
try:
|
40 |
data_df = pd.read_csv("data.csv")
|
|
|
94 |
mime="image/png"
|
95 |
)
|
96 |
|
97 |
+
st.sidebar.write("#### 3. Share your label in papers, technical reports, announcements, and more.")
|
98 |
+
st.sidebar.markdown("<hr style='border: 1px solid gray; margin: 15px 0;'>", unsafe_allow_html=True)
|
99 |
+
st.sidebar.write("### Key Links.")
|
100 |
+
st.sidebar.write("- [Leaderboard](https://huggingface.co/spaces/AIEnergyScore/Leaderboard)")
|
101 |
+
st.sidebar.write("- [FAQ](https://huggingface.github.io/AIEnergyScore/#faq)")
|
102 |
+
st.sidebar.write("- [Documentation](https://huggingface.github.io/AIEnergyScore/#documentation)")
|
103 |
+
|
104 |
|
105 |
def create_label_single_pass(background_image, model_data, final_size=(520, 728)):
|
106 |
"""
|