Spaces:
Runtime error
Runtime error
feat: ๐ธ update after change in the datasets-server API response
Browse files
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["
|
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."""
|