ccwu0918 commited on
Commit
262ef16
·
1 Parent(s): cb57234

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import numpy as np
2
+ import pandas as pd
3
+ import matplotlib.pyplot as plt
4
+
5
+ from tensorflow.keras.applications import ResNet50V2
6
+ from tensorflow.keras.models import Sequential, load_model
7
+ from tensorflow.keras.layers import Dense
8
+ from tensorflow.keras.utils import to_categorical
9
+ from tensorflow.keras.applications.resnet_v2 import preprocess_input
10
+ from tensorflow.keras.preprocessing.image import load_img, img_to_array
11
+
12
+ model = load_model('my_cnn_model.h5') # Loading the Tensorflow Saved Model (PB)
13
+ print(model.summary())
14
+