Spaces:
Runtime error
Runtime error
Hotfix to handle datasets without metadata
Browse files
app.py
CHANGED
@@ -176,7 +176,7 @@ with st.expander("Advanced configuration"):
|
|
176 |
# Select task
|
177 |
# Hack to filter for unsupported tasks
|
178 |
# TODO(lewtun): remove this once we have SQuAD metrics support
|
179 |
-
if metadata[0]["task_id"] in UNSUPPORTED_TASKS:
|
180 |
metadata = None
|
181 |
selected_task = st.selectbox(
|
182 |
"Select a task",
|
|
|
176 |
# Select task
|
177 |
# Hack to filter for unsupported tasks
|
178 |
# TODO(lewtun): remove this once we have SQuAD metrics support
|
179 |
+
if metadata is not None and metadata[0]["task_id"] in UNSUPPORTED_TASKS:
|
180 |
metadata = None
|
181 |
selected_task = st.selectbox(
|
182 |
"Select a task",
|