Spaces:
Runtime error
Runtime error
Merge pull request #71 from severo/update-api-response
Browse filesfeat: 🎸 update after change in the datasets-server API response
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."""
|