Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|