paloma99 commited on
Commit
cb5e89c
·
verified ·
1 Parent(s): e91b9ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -64,6 +64,13 @@ def predict_image(input):
64
  return category_scores
65
 
66
 
 
 
 
 
 
 
 
67
 
68
 
69
  # Cell 2: ChatBot Model
 
64
  return category_scores
65
 
66
 
67
+ image_gradio_app = gr.Interface(
68
+ fn=predict_image,
69
+ inputs=gr.Image(label="Image", sources=['upload', 'webcam'], type="pil"),
70
+ outputs=[gr.Label(label="Result")],
71
+ title=custom_title,
72
+ theme=theme
73
+ )
74
 
75
 
76
  # Cell 2: ChatBot Model