paloma99 commited on
Commit
1d12315
·
verified ·
1 Parent(s): cc85df5

Update app.py

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