AppleSwing commited on
Commit
86b14ca
β€’
1 Parent(s): a4829c2

Add inference_framework to the queue column

Browse files
Files changed (3) hide show
  1. app.py +3 -3
  2. src/display/utils.py +1 -0
  3. src/populate.py +2 -0
app.py CHANGED
@@ -355,21 +355,21 @@ def block_launch():
355
  num_fin = gr.Number(len(finished_eval_queue_df), label="Number of finished evaluations", visible=True, interactive=False)
356
  with gr.Row():
357
  finished_eval_table = gr.components.Dataframe(
358
- value=finished_eval_queue_df, headers=EVAL_COLS, datatype=EVAL_TYPES, row_count=5
359
  )
360
  with gr.Accordion(f"πŸ”„ Running Evaluation Queue", open=False):
361
  with gr.Column():
362
  num_run = gr.Number(len(running_eval_queue_df), label="Number of running evaluations", visible=True, interactive=False)
363
  with gr.Row():
364
  running_eval_table = gr.components.Dataframe(
365
- value=running_eval_queue_df, headers=EVAL_COLS, datatype=EVAL_TYPES, row_count=5
366
  )
367
  with gr.Accordion(f"⏳ Scheduled Evaluation Queue", open=False):
368
  with gr.Column():
369
  num_sche = gr.Number(len(pending_eval_queue_df), label="Number of scheduled evaluations", visible=True, interactive=False)
370
  with gr.Row():
371
  pending_eval_table = gr.components.Dataframe(
372
- value=pending_eval_queue_df, headers=EVAL_COLS, datatype=EVAL_TYPES, row_count=5
373
  )
374
  # refresh_button.click(fn=update_submit_tables,
375
  # outputs=[finished_eval_table, running_eval_table, pending_eval_table])
 
355
  num_fin = gr.Number(len(finished_eval_queue_df), label="Number of finished evaluations", visible=True, interactive=False)
356
  with gr.Row():
357
  finished_eval_table = gr.components.Dataframe(
358
+ value=finished_eval_queue_df, headers=EVAL_COLS, datatype=EVAL_TYPES, row_count=6
359
  )
360
  with gr.Accordion(f"πŸ”„ Running Evaluation Queue", open=False):
361
  with gr.Column():
362
  num_run = gr.Number(len(running_eval_queue_df), label="Number of running evaluations", visible=True, interactive=False)
363
  with gr.Row():
364
  running_eval_table = gr.components.Dataframe(
365
+ value=running_eval_queue_df, headers=EVAL_COLS, datatype=EVAL_TYPES, row_count=6
366
  )
367
  with gr.Accordion(f"⏳ Scheduled Evaluation Queue", open=False):
368
  with gr.Column():
369
  num_sche = gr.Number(len(pending_eval_queue_df), label="Number of scheduled evaluations", visible=True, interactive=False)
370
  with gr.Row():
371
  pending_eval_table = gr.components.Dataframe(
372
+ value=pending_eval_queue_df, headers=EVAL_COLS, datatype=EVAL_TYPES, row_count=6
373
  )
374
  # refresh_button.click(fn=update_submit_tables,
375
  # outputs=[finished_eval_table, running_eval_table, pending_eval_table])
src/display/utils.py CHANGED
@@ -111,6 +111,7 @@ class EvalQueueColumn: # Queue column
111
  private = ColumnContent("private", "bool", True)
112
  precision = ColumnContent("precision", "str", True)
113
  weight_type = ColumnContent("weight_type", "str", "Original")
 
114
  status = ColumnContent("status", "str", True)
115
 
116
 
 
111
  private = ColumnContent("private", "bool", True)
112
  precision = ColumnContent("precision", "str", True)
113
  weight_type = ColumnContent("weight_type", "str", "Original")
114
+ model_framework = ColumnContent("inference_framework", "str", True)
115
  status = ColumnContent("status", "str", True)
116
 
117
 
src/populate.py CHANGED
@@ -97,6 +97,7 @@ def get_evaluation_queue_df(save_path: str, cols: list) -> tuple[pd.DataFrame, p
97
 
98
  data[EvalQueueColumn.model.name] = make_clickable_model(data["model"])
99
  data[EvalQueueColumn.revision.name] = data.get("revision", "main")
 
100
 
101
  all_evals.append(data)
102
  elif ".md" not in entry:
@@ -109,6 +110,7 @@ def get_evaluation_queue_df(save_path: str, cols: list) -> tuple[pd.DataFrame, p
109
 
110
  data[EvalQueueColumn.model.name] = make_clickable_model(data["model"])
111
  data[EvalQueueColumn.revision.name] = data.get("revision", "main")
 
112
  all_evals.append(data)
113
 
114
  pending_list = [e for e in all_evals if e["status"] in ["PENDING", "RERUN"]]
 
97
 
98
  data[EvalQueueColumn.model.name] = make_clickable_model(data["model"])
99
  data[EvalQueueColumn.revision.name] = data.get("revision", "main")
100
+ data[EvalQueueColumn.model_framework.name] = data.get("inference_framework", "-")
101
 
102
  all_evals.append(data)
103
  elif ".md" not in entry:
 
110
 
111
  data[EvalQueueColumn.model.name] = make_clickable_model(data["model"])
112
  data[EvalQueueColumn.revision.name] = data.get("revision", "main")
113
+ data[EvalQueueColumn.model_framework.name] = data.get("inference_framework", "-")
114
  all_evals.append(data)
115
 
116
  pending_list = [e for e in all_evals if e["status"] in ["PENDING", "RERUN"]]