jaifar530 commited on
Commit
309842b
·
unverified ·
1 Parent(s): 8d79bf5
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -51,7 +51,7 @@ with open('RandomForestClassifier.pkl', 'rb') as file:
51
 
52
  input_paragraph = st.text_area("Input your text here")
53
  df = pd.DataFrame(columns=["paragraph"])
54
- df = df.concat({"paragraph": input_paragraph}, ignore_index=True)
55
 
56
  num_words = 500
57
  input_paragraph = ' '.join(word_tokenize(input_paragraph)[:num_words])
 
51
 
52
  input_paragraph = st.text_area("Input your text here")
53
  df = pd.DataFrame(columns=["paragraph"])
54
+ df = df.append({"paragraph": input_paragraph}, ignore_index=True)
55
 
56
  num_words = 500
57
  input_paragraph = ' '.join(word_tokenize(input_paragraph)[:num_words])