Spaces:
Runtime error
Runtime error
Commit
Β·
253cc30
1
Parent(s):
fc6b132
Update app.py
Browse files
app.py
CHANGED
@@ -21,8 +21,7 @@ def evaluate_comment(Comment):
|
|
21 |
res = model.predict(processed_Comment)
|
22 |
text = ''
|
23 |
for i, col in enumerate(df.columns[2:]):
|
24 |
-
|
25 |
-
text += '{}: {}\n'.format(col, 'πππ' if res[0][i] > 0.5 else 'πππ')
|
26 |
|
27 |
return text
|
28 |
|
|
|
21 |
res = model.predict(processed_Comment)
|
22 |
text = ''
|
23 |
for i, col in enumerate(df.columns[2:]):
|
24 |
+
text += '{}: \t\t{}\n'.format(col.capitalize(), 'πππ' if res[0][i] > 0.5 else 'πππ')
|
|
|
25 |
|
26 |
return text
|
27 |
|