ccwu0918 commited on
Commit
8bff7bf
·
1 Parent(s): 024d810

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -2,16 +2,14 @@ import gradio as gr
2
  import numpy as np
3
  import pandas as pd
4
  import matplotlib.pyplot as plt
5
- import tensorflow as tf
6
- from tensorflow.keras.models import Sequential, load_model
7
-
8
-
9
 
10
 
11
 
12
  def greet(name):
13
 
14
- model = load_model('my_cnn_model.h5') # Loading the Tensorflow Saved Model (PB)
15
 
16
  return "Hello " + name + "!!" + model.summary()
17
 
 
2
  import numpy as np
3
  import pandas as pd
4
  import matplotlib.pyplot as plt
5
+ from tensorflow import keras
6
+ from tensorflow.keras import layers
 
 
7
 
8
 
9
 
10
  def greet(name):
11
 
12
+ model = keras.load_model('my_cnn_model.h5') # Loading the Tensorflow Saved Model (PB)
13
 
14
  return "Hello " + name + "!!" + model.summary()
15