lewtun HF staff commited on
Commit
1b08621
1 Parent(s): b82cd2f

Hotfix to handle datasets without metadata

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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",