Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ st.title("What's the category?")
|
|
| 6 |
|
| 7 |
text = st.text_input("Enter words")
|
| 8 |
|
| 9 |
-
|
| 10 |
-
res = classifier(text,
|
| 11 |
|
| 12 |
st.markdown(f'Well here you go: {res}')
|
|
|
|
| 6 |
|
| 7 |
text = st.text_input("Enter words")
|
| 8 |
|
| 9 |
+
candidate_labels = ['lifestyle', 'technology', 'entertainment', 'news']
|
| 10 |
+
res = classifier(text, candidate_labels)
|
| 11 |
|
| 12 |
st.markdown(f'Well here you go: {res}')
|