Spaces:
Running
Running
Jae-Won Chung
commited on
Commit
•
6359f4f
1
Parent(s):
2afd5bf
Take down Colosseum and add YouTube demo
Browse files
app.py
CHANGED
@@ -22,8 +22,9 @@ pio.templates.default = "plotly_white"
|
|
22 |
|
23 |
from spitfight.colosseum.client import ControllerClient
|
24 |
|
25 |
-
COLOSSEUM_UP =
|
26 |
COLOSSEUM_DOWN_MESSAGE = f"<br/><h2 style='text-align: center'>The Colosseum is currently down for maintenance.</h2>"
|
|
|
27 |
|
28 |
|
29 |
class TableManager:
|
@@ -552,6 +553,7 @@ with gr.Blocks(css=custom_css) as block:
|
|
552 |
else:
|
553 |
gr.HTML(COLOSSEUM_DOWN_MESSAGE)
|
554 |
gr.HTML("<h3 style='text-align: center'>The energy leaderboard is still available.</h3><br/>")
|
|
|
555 |
|
556 |
with gr.Row():
|
557 |
model_preference_dropdown = gr.Dropdown(
|
|
|
22 |
|
23 |
from spitfight.colosseum.client import ControllerClient
|
24 |
|
25 |
+
COLOSSEUM_UP = False
|
26 |
COLOSSEUM_DOWN_MESSAGE = f"<br/><h2 style='text-align: center'>The Colosseum is currently down for maintenance.</h2>"
|
27 |
+
COLOSSUMM_YOUTUBE_DEMO_EMBED_HTML = '<div style="width: 100%; min-width: 400px;"><div style="position: relative; width: 100%; overflow: hidden; padding-top: 56.25%"><p><iframe width="560" height="315" style="margin: auto; position: absolute; top: 0; left: 0; right: 0; width: 100%; height: 100%; border: none;" src="https://www.youtube.com/embed/tvNM_gLffFs?si=rW1-10pt5BffJEGH" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe><p></div></div>'
|
28 |
|
29 |
|
30 |
class TableManager:
|
|
|
553 |
else:
|
554 |
gr.HTML(COLOSSEUM_DOWN_MESSAGE)
|
555 |
gr.HTML("<h3 style='text-align: center'>The energy leaderboard is still available.</h3><br/>")
|
556 |
+
gr.HTML(COLOSSUMM_YOUTUBE_DEMO_EMBED_HTML)
|
557 |
|
558 |
with gr.Row():
|
559 |
model_preference_dropdown = gr.Dropdown(
|