gsaivinay commited on
Commit
3ddb851
·
1 Parent(s): 40ac0fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -51
app.py CHANGED
@@ -349,7 +349,7 @@ with demo:
349
  gr.Markdown(EVALUATION_QUEUE_TEXT, elem_classes="markdown-text")
350
 
351
  with gr.Column():
352
- with gr.Accordion("✅ Finished Evaluations", open=False):
353
  with gr.Row():
354
  finished_eval_table = gr.components.Dataframe(
355
  value=finished_eval_queue_df,
@@ -357,7 +357,7 @@ with demo:
357
  datatype=EVAL_TYPES,
358
  max_rows=5,
359
  )
360
- with gr.Accordion("🔄 Running Evaluation Queue", open=False):
361
  with gr.Row():
362
  running_eval_table = gr.components.Dataframe(
363
  value=running_eval_queue_df,
@@ -366,7 +366,7 @@ with demo:
366
  max_rows=5,
367
  )
368
 
369
- with gr.Accordion("⏳ Pending Evaluation Queue", open=False):
370
  with gr.Row():
371
  pending_eval_table = gr.components.Dataframe(
372
  value=pending_eval_queue_df,
@@ -374,54 +374,6 @@ with demo:
374
  datatype=EVAL_TYPES,
375
  max_rows=5,
376
  )
377
- with gr.Row():
378
- gr.Markdown("# ✉️✨ Submit your model here!", elem_classes="markdown-text")
379
-
380
- with gr.Row():
381
- with gr.Column():
382
- model_name_textbox = gr.Textbox(label="Model name")
383
- revision_name_textbox = gr.Textbox(
384
- label="revision", placeholder="main"
385
- )
386
- private = gr.Checkbox(
387
- False, label="Private", visible=not IS_PUBLIC
388
- )
389
-
390
- with gr.Column():
391
- precision = gr.Dropdown(
392
- choices=["float16", "bfloat16", "8bit (LLM.int8)", "4bit (QLoRA / FP4)"],
393
- label="Precision",
394
- multiselect=False,
395
- value="float16",
396
- max_choices=1,
397
- interactive=True,
398
- )
399
- weight_type = gr.Dropdown(
400
- choices=["Original", "Delta", "Adapter"],
401
- label="Weights type",
402
- multiselect=False,
403
- value="Original",
404
- max_choices=1,
405
- interactive=True,
406
- )
407
- base_model_name_textbox = gr.Textbox(
408
- label="Base model (for delta or adapter weights)"
409
- )
410
-
411
- submit_button = gr.Button("Submit Eval")
412
- submission_result = gr.Markdown()
413
- submit_button.click(
414
- add_new_eval,
415
- [
416
- model_name_textbox,
417
- base_model_name_textbox,
418
- revision_name_textbox,
419
- precision,
420
- private,
421
- weight_type,
422
- ],
423
- submission_result,
424
- )
425
 
426
  with gr.Row():
427
  refresh_button = gr.Button("Refresh")
 
349
  gr.Markdown(EVALUATION_QUEUE_TEXT, elem_classes="markdown-text")
350
 
351
  with gr.Column():
352
+ with gr.Accordion(f"✅ Finished Evaluations: {len(finished_eval_queue_df)}", open=False):
353
  with gr.Row():
354
  finished_eval_table = gr.components.Dataframe(
355
  value=finished_eval_queue_df,
 
357
  datatype=EVAL_TYPES,
358
  max_rows=5,
359
  )
360
+ with gr.Accordion(f"🔄 Running Evaluation Queue: {len(running_eval_queue_df)}", open=False):
361
  with gr.Row():
362
  running_eval_table = gr.components.Dataframe(
363
  value=running_eval_queue_df,
 
366
  max_rows=5,
367
  )
368
 
369
+ with gr.Accordion(f"⏳ Pending Evaluation Queue: {len(pending_eval_queue_df)}", open=False):
370
  with gr.Row():
371
  pending_eval_table = gr.components.Dataframe(
372
  value=pending_eval_queue_df,
 
374
  datatype=EVAL_TYPES,
375
  max_rows=5,
376
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
377
 
378
  with gr.Row():
379
  refresh_button = gr.Button("Refresh")