Spaces:
Sleeping
Sleeping
Merge branch 'main' of https://huggingface.co/spaces/davidefiocco/zeroshotcat into main
Browse files
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`
|
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`
|
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 |
)
|