Ahmed235 commited on
Commit
59638ad
1 Parent(s): 280586b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,6 +1,8 @@
1
  import json
2
  import numpy as np
3
  import gradio as gr
 
 
4
 
5
  # Load the model
6
  model_path = 'final_teath_classifier.h5'
@@ -36,4 +38,4 @@ output_interface = gr.outputs.Label(num_top_classes=2)
36
  iface = gr.Interface(fn=predict_image, inputs=input_interface, outputs=output_interface)
37
 
38
  # Launch the interface
39
- iface.launch()
 
1
  import json
2
  import numpy as np
3
  import gradio as gr
4
+ import tensorflow as tf
5
+ from PIL import Image
6
 
7
  # Load the model
8
  model_path = 'final_teath_classifier.h5'
 
38
  iface = gr.Interface(fn=predict_image, inputs=input_interface, outputs=output_interface)
39
 
40
  # Launch the interface
41
+ iface.launch()