Davide Fiocco commited on
Commit
2c92878
·
2 Parent(s): aa13915 e6eb9cf

Merge branch 'main' of https://huggingface.co/spaces/davidefiocco/zeroshotcat into main

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