Spaces:
Runtime error
Runtime error
Commit
·
d472997
1
Parent(s):
e144645
Update app.py
Browse files
app.py
CHANGED
@@ -9,9 +9,9 @@ def predict(input_img):
|
|
9 |
|
10 |
gradio_app = gr.Interface(
|
11 |
predict,
|
12 |
-
inputs=gr.Image(label="
|
13 |
-
outputs=[gr.Image(label="
|
14 |
-
title="Hot Dog?
|
15 |
)
|
16 |
|
17 |
if __name__ == "__main__":
|
|
|
9 |
|
10 |
gradio_app = gr.Interface(
|
11 |
predict,
|
12 |
+
inputs=gr.Image(label="Upload image", sources=['upload', 'webcam'], type="pil"),
|
13 |
+
outputs=[gr.Image(label="Decided"), gr.Label(label="Result", num_top_classes=2)],
|
14 |
+
title="Hot Dog? Not Hot Dog",
|
15 |
)
|
16 |
|
17 |
if __name__ == "__main__":
|