Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,17 @@ import time
|
|
10 |
import requests
|
11 |
from collections import Counter
|
12 |
|
13 |
-
st.set_page_config(page_title="HF Contributions", layout="wide")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
api = HfApi()
|
15 |
|
16 |
|
@@ -269,7 +279,12 @@ with st.sidebar:
|
|
269 |
st.title("👤 Contributor")
|
270 |
|
271 |
# Create tabs for Spaces and Models rankings
|
272 |
-
tab1, tab2, tab3 = st.tabs([
|
|
|
|
|
|
|
|
|
|
|
273 |
|
274 |
with tab1:
|
275 |
# Show combined trending accounts list
|
|
|
10 |
import requests
|
11 |
from collections import Counter
|
12 |
|
13 |
+
st.set_page_config(page_title="HF Contributions", layout="wide", initial_sidebar_state="expanded")
|
14 |
+
|
15 |
+
# Set custom sidebar width
|
16 |
+
st.markdown("""
|
17 |
+
<style>
|
18 |
+
[data-testid="stSidebar"] {
|
19 |
+
min-width: 450px !important;
|
20 |
+
max-width: 550px !important;
|
21 |
+
}
|
22 |
+
</style>
|
23 |
+
""", unsafe_allow_html=True)
|
24 |
api = HfApi()
|
25 |
|
26 |
|
|
|
279 |
st.title("👤 Contributor")
|
280 |
|
281 |
# Create tabs for Spaces and Models rankings
|
282 |
+
tab1, tab2, tab3, tab4 = st.tabs([
|
283 |
+
"SPACES TOP 30",
|
284 |
+
"SPACES TOP 100",
|
285 |
+
"MODELS TOP 30",
|
286 |
+
"MODELS TOP 100"
|
287 |
+
])
|
288 |
|
289 |
with tab1:
|
290 |
# Show combined trending accounts list
|