Spaces:
Runtime error
Runtime error
jaifar530
commited on
adding word count
Browse files
app.py
CHANGED
|
@@ -48,6 +48,7 @@ with open('RandomForestClassifier.pkl', 'rb') as file:
|
|
| 48 |
|
| 49 |
|
| 50 |
input_paragraph = st.text_area("Input your text here")
|
|
|
|
| 51 |
|
| 52 |
# df = pd.DataFrame(columns=["paragraph"])
|
| 53 |
# df = df.append({"paragraph": input_paragraph}, ignore_index=True)
|
|
|
|
| 48 |
|
| 49 |
|
| 50 |
input_paragraph = st.text_area("Input your text here")
|
| 51 |
+
st.write('Words counts: ', word_tokenize(input_paragraph))
|
| 52 |
|
| 53 |
# df = pd.DataFrame(columns=["paragraph"])
|
| 54 |
# df = df.append({"paragraph": input_paragraph}, ignore_index=True)
|