severo HF staff commited on
Commit
5846ed4
โ€ข
1 Parent(s): df35625

feat: ๐ŸŽธ update after change in the datasets-server API response

Browse files
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."""