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