ZeroCommand commited on
Commit
a2a18b3
1 Parent(s): 4045dfc

clean up recommend dataset

Browse files
Files changed (1) hide show
  1. text_classification_ui_helpers.py +1 -1
text_classification_ui_helpers.py CHANGED
@@ -45,7 +45,7 @@ HF_GSK_HUB_UNLOCK_TOKEN = "GSK_HUB_UNLOCK_TOKEN"
45
  LEADERBOARD = "giskard-bot/evaluator-leaderboard"
46
  def get_related_datasets_from_leaderboard(model_id, rec_dataset=False):
47
  if not rec_dataset:
48
- return gr.Textbox(placeholder="Please enter your dataset id.", visible=True)
49
  records = leaderboard.records
50
  model_records = records[records["model_id"] == model_id]
51
  print(model_records)
 
45
  LEADERBOARD = "giskard-bot/evaluator-leaderboard"
46
  def get_related_datasets_from_leaderboard(model_id, rec_dataset=False):
47
  if not rec_dataset:
48
+ return gr.update()
49
  records = leaderboard.records
50
  model_records = records[records["model_id"] == model_id]
51
  print(model_records)