Spaces:
Runtime error
Runtime error
Clémentine
commited on
Commit
•
c031e0c
1
Parent(s):
e5d08eb
living on a prayer - will this work
Browse files
app.py
CHANGED
@@ -213,93 +213,28 @@ with demo:
|
|
213 |
with gr.TabItem("❗FAQ", elem_id="llm-benchmark-tab-table", id=4):
|
214 |
gr.Markdown(FAQ_TEXT, elem_classes="markdown-text")
|
215 |
|
216 |
-
with gr.TabItem("🚀 Submit ", elem_id="llm-benchmark-tab-table", id=5):
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
with gr.Column():
|
237 |
-
precision = gr.Dropdown(
|
238 |
-
choices=[i.value.name for i in Precision if i != Precision.Unknown],
|
239 |
-
label="Precision",
|
240 |
-
multiselect=False,
|
241 |
-
value="float16",
|
242 |
-
interactive=True,
|
243 |
-
)
|
244 |
-
weight_type = gr.Dropdown(
|
245 |
-
choices=[i.value.name for i in WeightType],
|
246 |
-
label="Weights type",
|
247 |
-
multiselect=False,
|
248 |
-
value="Original",
|
249 |
-
interactive=True,
|
250 |
-
)
|
251 |
-
base_model_name_textbox = gr.Textbox(label="Base model (for delta or adapter weights)")
|
252 |
-
|
253 |
-
with gr.Column():
|
254 |
-
with gr.Accordion(
|
255 |
-
f"✅ Finished Evaluations ({len(finished_eval_queue_df)})",
|
256 |
-
open=False,
|
257 |
-
):
|
258 |
-
with gr.Row():
|
259 |
-
finished_eval_table = gr.components.Dataframe(
|
260 |
-
value=finished_eval_queue_df,
|
261 |
-
headers=EVAL_COLS,
|
262 |
-
datatype=EVAL_TYPES,
|
263 |
-
row_count=5,
|
264 |
-
)
|
265 |
-
with gr.Accordion(
|
266 |
-
f"🔄 Running Evaluation Queue ({len(running_eval_queue_df)})",
|
267 |
-
open=False,
|
268 |
-
):
|
269 |
-
with gr.Row():
|
270 |
-
running_eval_table = gr.components.Dataframe(
|
271 |
-
value=running_eval_queue_df,
|
272 |
-
headers=EVAL_COLS,
|
273 |
-
datatype=EVAL_TYPES,
|
274 |
-
row_count=5,
|
275 |
-
)
|
276 |
-
|
277 |
-
with gr.Accordion(
|
278 |
-
f"⏳ Pending Evaluation Queue ({len(pending_eval_queue_df)})",
|
279 |
-
open=False,
|
280 |
-
):
|
281 |
-
with gr.Row():
|
282 |
-
pending_eval_table = gr.components.Dataframe(
|
283 |
-
value=pending_eval_queue_df,
|
284 |
-
headers=EVAL_COLS,
|
285 |
-
datatype=EVAL_TYPES,
|
286 |
-
row_count=5,
|
287 |
-
)
|
288 |
-
|
289 |
-
submit_button = gr.Button("Submit Eval")
|
290 |
-
submission_result = gr.Markdown()
|
291 |
-
submit_button.click(
|
292 |
-
add_new_eval,
|
293 |
-
[
|
294 |
-
model_name_textbox,
|
295 |
-
base_model_name_textbox,
|
296 |
-
revision_name_textbox,
|
297 |
-
precision,
|
298 |
-
weight_type,
|
299 |
-
model_type,
|
300 |
-
],
|
301 |
-
submission_result,
|
302 |
)
|
|
|
|
|
303 |
|
304 |
with gr.Row():
|
305 |
with gr.Accordion("📙 Citation", open=False):
|
@@ -312,8 +247,7 @@ with demo:
|
|
312 |
)
|
313 |
|
314 |
demo.load(fn=get_latest_data_leaderboard, inputs=[leaderboard], outputs=[leaderboard])
|
315 |
-
|
316 |
-
|
317 |
|
318 |
demo.queue(default_concurrency_limit=40)
|
319 |
|
|
|
213 |
with gr.TabItem("❗FAQ", elem_id="llm-benchmark-tab-table", id=4):
|
214 |
gr.Markdown(FAQ_TEXT, elem_classes="markdown-text")
|
215 |
|
216 |
+
with gr.TabItem("🚀 Submit? ", elem_id="llm-benchmark-tab-table", id=5):
|
217 |
+
countdown = gr.HTML(
|
218 |
+
"""<div align="center">
|
219 |
+
<div position: relative>
|
220 |
+
<img
|
221 |
+
src="https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard/resolve/main/gif.gif"
|
222 |
+
allowtransparency="true"
|
223 |
+
style="display:block;width:100%;height:auto;"
|
224 |
+
/>
|
225 |
+
<iframe
|
226 |
+
src="https://logwork.com/widget/countdown/?text=Surprise%20loading...&timezone=Europe%2FParis&width=&style=circles&uid=815898&loc=https://logwork.com/countdown-fxmc&language=en&textcolor=&background=%23ffd21e&date=2024-06-26%2015%3A00%3A00&digitscolor=%23ff9d00&unitscolor=&"
|
227 |
+
style="position: absolute; top:0; left: 0; border: medium; width:100%; height:100%; margin: 0px; visibility: visible;"
|
228 |
+
scrolling="no"
|
229 |
+
allowtransparency="true"
|
230 |
+
frameborder="0"
|
231 |
+
allowfullscreen
|
232 |
+
/>
|
233 |
+
</div>
|
234 |
+
</div>"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
235 |
)
|
236 |
+
#gif = gr.Image(value="./gif.gif", interactive=False)
|
237 |
+
gr.Markdown("*Countdown by Logwork.com, gif art by Chun Te Lee*")
|
238 |
|
239 |
with gr.Row():
|
240 |
with gr.Accordion("📙 Citation", open=False):
|
|
|
247 |
)
|
248 |
|
249 |
demo.load(fn=get_latest_data_leaderboard, inputs=[leaderboard], outputs=[leaderboard])
|
250 |
+
|
|
|
251 |
|
252 |
demo.queue(default_concurrency_limit=40)
|
253 |
|