lewtun HF staff commited on
Commit
e9e4c79
2 Parent(s): df35625 5846ed4

Merge pull request #71 from severo/update-api-response

Browse files

feat: 🎸 update after change in the datasets-server API response

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -171,7 +171,7 @@ is_valid_dataset = http_get(
171
  domain=DATASETS_PREVIEW_API,
172
  params={"dataset": selected_dataset},
173
  ).json()
174
- if is_valid_dataset["valid"] is False:
175
  st.error(
176
  """The dataset you selected is not currently supported. Open a \
177
  [discussion](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions) for support."""
 
171
  domain=DATASETS_PREVIEW_API,
172
  params={"dataset": selected_dataset},
173
  ).json()
174
+ if is_valid_dataset["viewer"] is False and is_valid_dataset["preview"] is False:
175
  st.error(
176
  """The dataset you selected is not currently supported. Open a \
177
  [discussion](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions) for support."""