Spaces:
Runtime error
Runtime error
Commit ·
7891ba7
1
Parent(s): fbad041
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ from keras.utils import pad_sequences
|
|
| 6 |
model=pickle.load(open("model.pkl","rb"))
|
| 7 |
def calc(user_input):
|
| 8 |
user_input=[user_input]
|
| 9 |
-
seq=tokenizer.texts_to_sequences(
|
| 10 |
inp=pad_sequences(seq,padding='post',maxlen=51)
|
| 11 |
score=(model.predict(inp))[0][0]
|
| 12 |
if score>0.6:
|
|
|
|
| 6 |
model=pickle.load(open("model.pkl","rb"))
|
| 7 |
def calc(user_input):
|
| 8 |
user_input=[user_input]
|
| 9 |
+
seq=tokenizer.texts_to_sequences(user_input)
|
| 10 |
inp=pad_sequences(seq,padding='post',maxlen=51)
|
| 11 |
score=(model.predict(inp))[0][0]
|
| 12 |
if score>0.6:
|