Battu007 commited on
Commit
9496ed4
1 Parent(s): fa65eaa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -1,5 +1,9 @@
1
  import gradio as gr
2
 
 
 
 
 
3
  def predict_image(opened_image):
4
  img_array = tf.keras.utils.img_to_array(opened_image)
5
  img_array = tf.expand_dims(img_array, 0) #Convert image to one empty batch -> Model was trained on batches
 
1
  import gradio as gr
2
 
3
+ import tensorflow as tf
4
+
5
+ import gradio as gr
6
+
7
  def predict_image(opened_image):
8
  img_array = tf.keras.utils.img_to_array(opened_image)
9
  img_array = tf.expand_dims(img_array, 0) #Convert image to one empty batch -> Model was trained on batches