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 |
-
if text is not None:
|
| 10 |
candidate_labels = ['lifestyle', 'technology', 'entertainment', 'news']
|
| 11 |
res = classifier(text, candidate_labels)
|
| 12 |
|
|
|
|
| 6 |
|
| 7 |
text = st.text_input("Enter words")
|
| 8 |
|
| 9 |
+
if text is not None and text is not "":
|
| 10 |
candidate_labels = ['lifestyle', 'technology', 'entertainment', 'news']
|
| 11 |
res = classifier(text, candidate_labels)
|
| 12 |
|