Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import streamlit as st
|
|
2 |
import tensorflow as tf
|
3 |
from tensorflow.keras.datasets import imdb
|
4 |
from tensorflow.keras.preprocessing import sequence
|
|
|
5 |
import numpy as np
|
6 |
|
7 |
word_index = imdb.get_word_index()
|
|
|
2 |
import tensorflow as tf
|
3 |
from tensorflow.keras.datasets import imdb
|
4 |
from tensorflow.keras.preprocessing import sequence
|
5 |
+
from tensorflow.keras.preprocessing.sequence import pad_sequences
|
6 |
import numpy as np
|
7 |
|
8 |
word_index = imdb.get_word_index()
|