Spaces:
Runtime error
Runtime error
Sivaram Mothiki
commited on
Commit
·
d24a7d9
1
Parent(s):
b157cc4
remove vote tab
Browse files
app.py
CHANGED
@@ -339,51 +339,51 @@ with main_block:
|
|
339 |
# )
|
340 |
|
341 |
# Ensure the values in 'pending_eval_queue_df' are correct and ready for the DataFrame component
|
342 |
-
with gr.TabItem("🆙 Model Vote"):
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
# Set the click event for the vote button
|
382 |
-
vote_button.click(
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
)
|
387 |
|
388 |
|
389 |
with gr.Row():
|
|
|
339 |
# )
|
340 |
|
341 |
# Ensure the values in 'pending_eval_queue_df' are correct and ready for the DataFrame component
|
342 |
+
# with gr.TabItem("🆙 Model Vote"):
|
343 |
+
# with gr.Row():
|
344 |
+
# gr.Markdown(
|
345 |
+
# "## Vote for the models which should be evaluated first! \nYou'll need to sign in with the button above first. All votes are recorded.",
|
346 |
+
# elem_classes="markdown-text"
|
347 |
+
# )
|
348 |
+
# login_button = gr.LoginButton(elem_id="oauth-button")
|
349 |
+
|
350 |
+
|
351 |
+
# with gr.Row():
|
352 |
+
# pending_models = pending_eval_queue_df[EvalQueueColumn.model_name.name].to_list()
|
353 |
+
|
354 |
+
# with gr.Column():
|
355 |
+
# selected_model = gr.Dropdown(
|
356 |
+
# choices=pending_models,
|
357 |
+
# label="Models",
|
358 |
+
# multiselect=False,
|
359 |
+
# value="str",
|
360 |
+
# interactive=True,
|
361 |
+
# )
|
362 |
+
|
363 |
+
# vote_button = gr.Button("Vote", variant="primary")
|
364 |
+
|
365 |
+
# with gr.Row():
|
366 |
+
# with gr.Accordion(
|
367 |
+
# f"Available models pending ({len(pending_eval_queue_df)})",
|
368 |
+
# open=True,
|
369 |
+
# ):
|
370 |
+
# with gr.Row():
|
371 |
+
# pending_eval_table_votes = gr.components.Dataframe(
|
372 |
+
# value=vote_manager.create_request_vote_df(
|
373 |
+
# pending_eval_queue_df
|
374 |
+
# ),
|
375 |
+
# headers=EVAL_COLS,
|
376 |
+
# datatype=EVAL_TYPES,
|
377 |
+
# row_count=5,
|
378 |
+
# interactive=False
|
379 |
+
# )
|
380 |
+
|
381 |
+
# # Set the click event for the vote button
|
382 |
+
# vote_button.click(
|
383 |
+
# vote_manager.add_vote,
|
384 |
+
# inputs=[selected_model, pending_eval_table],
|
385 |
+
# outputs=[pending_eval_table_votes]
|
386 |
+
# )
|
387 |
|
388 |
|
389 |
with gr.Row():
|