abdabbas commited on
Commit
e605d16
·
1 Parent(s): 80761ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  pip install tensorflow
2
  import tensorflow
3
  from tensorflow.keras.models import load_model
@@ -14,7 +15,7 @@ def predict_image(img):
14
  prediction=model.predict(img_4d)[0]
15
  #prediction = [1 if x>0.5 else 0 for x in prediction]
16
  return {class_names[i]: float(prediction[i]) for i in range(1)}
17
- import gradio as gr
18
  image = gr.inputs.Image(shape=(299,299))
19
  label = gr.outputs.Label(num_top_classes=1)
20
  gr.Interface(fn=predict_image, inputs=image,
 
1
+ import gradio as gr
2
  pip install tensorflow
3
  import tensorflow
4
  from tensorflow.keras.models import load_model
 
15
  prediction=model.predict(img_4d)[0]
16
  #prediction = [1 if x>0.5 else 0 for x in prediction]
17
  return {class_names[i]: float(prediction[i]) for i in range(1)}
18
+
19
  image = gr.inputs.Image(shape=(299,299))
20
  label = gr.outputs.Label(num_top_classes=1)
21
  gr.Interface(fn=predict_image, inputs=image,