Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,7 +42,7 @@ if st.button("Predict"):
|
|
| 42 |
body_len = len(text) - text.count(" ")
|
| 43 |
punct = count_punct(text)
|
| 44 |
#k = {"body_len": [body_len], "punc%": [punct]}
|
| 45 |
-
k = {body_len: [body_len], punc%: [punct]}
|
| 46 |
df = pd.DataFrame(k)
|
| 47 |
#df.columns = df.columns.astype(str)
|
| 48 |
test_vect = pd.concat([df.reset_index(drop=True),
|
|
|
|
| 42 |
body_len = len(text) - text.count(" ")
|
| 43 |
punct = count_punct(text)
|
| 44 |
#k = {"body_len": [body_len], "punc%": [punct]}
|
| 45 |
+
k = {"body_len": [body_len], "punc%": [punct]}
|
| 46 |
df = pd.DataFrame(k)
|
| 47 |
#df.columns = df.columns.astype(str)
|
| 48 |
test_vect = pd.concat([df.reset_index(drop=True),
|