davidefiocco commited on
Commit
e6eb9cf
·
1 Parent(s): 57fe04c

Clarify error message about schema

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -33,7 +33,7 @@ st.text(
33
  "Upload an Excel table and perform zero-shot classification on a set of custom labels"
34
  )
35
 
36
- data = st.file_uploader("Upload Excel file (it should contain a `text` column):")
37
  labels = st.text_input("Enter comma-separated labels:")
38
 
39
  # classify first N snippets only for faster inference
@@ -59,5 +59,5 @@ if st.button("Calculate labels"):
59
 
60
  except:
61
  st.error(
62
- "Something went wrong. Make sure you upload an Excel file containing a `text` column and a set of comma-separated labels is provided"
63
  )
 
33
  "Upload an Excel table and perform zero-shot classification on a set of custom labels"
34
  )
35
 
36
+ data = st.file_uploader("Upload Excel file (it should contain a column named `text` in its header):")
37
  labels = st.text_input("Enter comma-separated labels:")
38
 
39
  # classify first N snippets only for faster inference
 
59
 
60
  except:
61
  st.error(
62
+ "Something went wrong. Make sure you upload an Excel file containing a column named `text` and a set of comma-separated labels is provided"
63
  )