lewtun HF staff commited on
Commit
56bb2d2
1 Parent(s): 172ecfc

Add comment

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -193,6 +193,7 @@ with st.expander("Advanced configuration"):
193
 
194
  elif selected_task == "extractive_question_answering":
195
  col_mapping = metadata[0]["col_mapping"]
 
196
  col_mapping = {k.replace("-", "."): v.replace("-", ".") for k, v in col_mapping.items()}
197
  with col1:
198
  st.markdown("`context` column")
 
193
 
194
  elif selected_task == "extractive_question_answering":
195
  col_mapping = metadata[0]["col_mapping"]
196
+ # Hub YAML parser converts periods to hyphens, so we remap them here
197
  col_mapping = {k.replace("-", "."): v.replace("-", ".") for k, v in col_mapping.items()}
198
  with col1:
199
  st.markdown("`context` column")