Dwight18 commited on
Commit
03e1267
·
verified ·
1 Parent(s): f890b43

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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()