Spaces:
Runtime error
Runtime error
Kyle Dampier commited on
Commit ·
a11556c
1
Parent(s): f213495
tried changing tensorflow device to cpu
Browse files13 unmodified lines14151617181942 unmodified lines62636465666713 unmodified lines# Import Pre-trained Modelmodel = tf.keras.models.load_model('mnist.h5')plt.rcParams.update({'font.size': 18})# Create a sidebar to hold the settings42 unmodified lines# Show resized imagewith st.expander('Show Resized Image'):st.write("The image needs to be resized, because it can only input 28x28 images")st.image(im, caption='Resized Image', width=28*9)13 unmodified lines1415161718192042 unmodified lines63646566676813 unmodified lines# Import Pre-trained Modelmodel = tf.keras.models.load_model('mnist.h5')tf.device('/cpu:0')plt.rcParams.update({'font.size': 18})# Create a sidebar to hold the settings42 unmodified lines# Show resized imagewith st.expander('Show Resized Image'):st.write("The image needs to be resized, because it can only input 28x28 images")st.image(im, caption='Resized Image', width=28*9)
app.py+3-2