Spaces:
Runtime error
Runtime error
alex n
commited on
Commit
·
ae5716a
1
Parent(s):
791fbae
finalized colour changes
Browse files
app.py
CHANGED
@@ -7,11 +7,23 @@ from apscheduler.schedulers.background import BackgroundScheduler
|
|
7 |
background_url2 = 'https://media.discordapp.net/attachments/1294437373773484093/1305702292774719569/80-_.png?ex=6733fd85&is=6732ac05&hm=f94d26610cc6c9d39318a102fb2484eae6ab83a64226eba3af81fbe305245fc2&=&format=webp&quality=lossless&width=717&height=414'
|
8 |
background_url = 'https://media.discordapp.net/attachments/1294437373773484093/1299205237877510184/p7zQRQMPb8W1qitaFl_C9_c6ef80e2981d4a27a53c3708de43bb44.jpg?ex=67336cea&is=67321b6a&hm=aaa1d39210d631d9f800802da8a869c71e395802574ae61bee6030671f53ef3c&=&format=webp'
|
9 |
# Enhanced Custom CSS
|
10 |
-
custom_css =
|
11 |
-
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
background-size: cover !important;
|
14 |
-
|
|
|
|
|
|
|
15 |
"""
|
16 |
|
17 |
# Add error handling for bittensor initialization
|
@@ -147,6 +159,7 @@ with app:
|
|
147 |
with gr.Tab("ℹ️ About"):
|
148 |
gr.Markdown(
|
149 |
"""
|
|
|
150 |
## About this Leaderboard
|
151 |
|
152 |
This dashboard shows real-time information about validators on the network:
|
@@ -161,6 +174,7 @@ with app:
|
|
161 |
- **VTrust**: Validator's trust score (0 if unavailable)
|
162 |
|
163 |
Data is automatically refreshed every 5 minutes, or you can manually refresh using the button.
|
|
|
164 |
"""
|
165 |
)
|
166 |
|
|
|
7 |
background_url2 = 'https://media.discordapp.net/attachments/1294437373773484093/1305702292774719569/80-_.png?ex=6733fd85&is=6732ac05&hm=f94d26610cc6c9d39318a102fb2484eae6ab83a64226eba3af81fbe305245fc2&=&format=webp&quality=lossless&width=717&height=414'
|
8 |
background_url = 'https://media.discordapp.net/attachments/1294437373773484093/1299205237877510184/p7zQRQMPb8W1qitaFl_C9_c6ef80e2981d4a27a53c3708de43bb44.jpg?ex=67336cea&is=67321b6a&hm=aaa1d39210d631d9f800802da8a869c71e395802574ae61bee6030671f53ef3c&=&format=webp'
|
9 |
# Enhanced Custom CSS
|
10 |
+
custom_css = """
|
11 |
+
#component-0 {
|
12 |
+
max-width: 100% !important;
|
13 |
+
padding: 0 !important;
|
14 |
+
margin: 0 !important;
|
15 |
+
}
|
16 |
+
|
17 |
+
.gradio-container {
|
18 |
+
max-width: 100% !important;
|
19 |
+
padding: 0 !important;
|
20 |
+
margin: 0 !important;
|
21 |
+
background-image: url('""" + background_url + """') !important;
|
22 |
background-size: cover !important;
|
23 |
+
background-position: center !important;
|
24 |
+
background-repeat: no-repeat !important;
|
25 |
+
min-height: 100vh !important;
|
26 |
+
}
|
27 |
"""
|
28 |
|
29 |
# Add error handling for bittensor initialization
|
|
|
159 |
with gr.Tab("ℹ️ About"):
|
160 |
gr.Markdown(
|
161 |
"""
|
162 |
+
<div style="color: white;">
|
163 |
## About this Leaderboard
|
164 |
|
165 |
This dashboard shows real-time information about validators on the network:
|
|
|
174 |
- **VTrust**: Validator's trust score (0 if unavailable)
|
175 |
|
176 |
Data is automatically refreshed every 5 minutes, or you can manually refresh using the button.
|
177 |
+
</div>
|
178 |
"""
|
179 |
)
|
180 |
|