Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,8 @@ st.title("What's the category?")
|
|
| 6 |
|
| 7 |
text = st.text_input("Enter words")
|
| 8 |
|
| 9 |
-
|
| 10 |
-
|
|
|
|
| 11 |
|
| 12 |
-
st.markdown(f'Well here you go: {res}')
|
|
|
|
| 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("Today is a good day to have a good day", candidate_labels)
|
| 12 |
|
| 13 |
+
st.markdown(f'Well here you go: {res}')
|