Spaces:
Sleeping
Sleeping
AswinPJaison
commited on
Commit
·
cc30e23
1
Parent(s):
a356196
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ import pickle
|
|
9 |
# Load word index for Sentiments Classification
|
10 |
word_to_index = imdb.get_word_index()
|
11 |
|
12 |
-
|
13 |
def sentiment_classification(new_review_text, model):
|
14 |
max_review_length = 500
|
15 |
new_review_tokens = [word_to_index.get(word, 0) for word in new_review_text.split()]
|
|
|
9 |
# Load word index for Sentiments Classification
|
10 |
word_to_index = imdb.get_word_index()
|
11 |
|
12 |
+
|
13 |
def sentiment_classification(new_review_text, model):
|
14 |
max_review_length = 500
|
15 |
new_review_tokens = [word_to_index.get(word, 0) for word in new_review_text.split()]
|