Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
import predictor
|
3 |
|
|
|
|
|
|
|
4 |
def check_string(string_to_predict):
|
5 |
try:
|
6 |
is_extremist = predictor.predictor().predict(string_to_predict)
|
|
|
1 |
import gradio as gr
|
2 |
import predictor
|
3 |
|
4 |
+
import nltk
|
5 |
+
>>> nltk.download('averaged_perceptron_tagger')
|
6 |
+
|
7 |
def check_string(string_to_predict):
|
8 |
try:
|
9 |
is_extremist = predictor.predictor().predict(string_to_predict)
|