Spaces:
Runtime error
Runtime error
Add comment
Browse files
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")
|