Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -184,8 +184,7 @@ def create_leaderboard_ui():
|
|
184 |
|
185 |
styled_html = f"""
|
186 |
<div style="margin: 20px 0;">
|
187 |
-
<
|
188 |
-
<p>Last updated: {time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(last_update_time))}</p>
|
189 |
<style>
|
190 |
.leaderboard-table {{
|
191 |
width: 100%;
|
@@ -247,7 +246,6 @@ def create_leaderboard_ui():
|
|
247 |
}}
|
248 |
</style>
|
249 |
{df_html}
|
250 |
-
<p style="color: #ccc;"><small>Note: This leaderboard shows user contributions to the BLEND-ES project across all countries.</small></p>
|
251 |
</div>
|
252 |
"""
|
253 |
return styled_html
|
@@ -264,7 +262,7 @@ with gr.Blocks(theme=gr.themes.Default()) as demo:
|
|
264 |
|
265 |
leaderboard_html = gr.HTML(create_leaderboard_ui)
|
266 |
|
267 |
-
refresh_btn = gr.Button("馃攧
|
268 |
refresh_btn.click(fn=refresh_data, outputs=leaderboard_html)
|
269 |
|
270 |
gr.mount_gradio_app(app, demo, path="/")
|
|
|
184 |
|
185 |
styled_html = f"""
|
186 |
<div style="margin: 20px 0;">
|
187 |
+
<p>脷ltima Actualizaci贸n: {time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(last_update_time))}</p>
|
|
|
188 |
<style>
|
189 |
.leaderboard-table {{
|
190 |
width: 100%;
|
|
|
246 |
}}
|
247 |
</style>
|
248 |
{df_html}
|
|
|
249 |
</div>
|
250 |
"""
|
251 |
return styled_html
|
|
|
262 |
|
263 |
leaderboard_html = gr.HTML(create_leaderboard_ui)
|
264 |
|
265 |
+
refresh_btn = gr.Button("馃攧 Actualizar Datos", variant="primary")
|
266 |
refresh_btn.click(fn=refresh_data, outputs=leaderboard_html)
|
267 |
|
268 |
gr.mount_gradio_app(app, demo, path="/")
|