Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import theme
|
|
6 |
theme = theme.Theme()
|
7 |
|
8 |
# Cell 1: Image Classification Model
|
9 |
-
image_pipeline = pipeline(task="image-classification", model="
|
10 |
|
11 |
def predict_image(input_img):
|
12 |
predictions = image_pipeline(input_img)
|
@@ -15,8 +15,8 @@ def predict_image(input_img):
|
|
15 |
image_gradio_app = gr.Interface(
|
16 |
fn=predict_image,
|
17 |
inputs=gr.Image(label="Select hot dog candidate", sources=['upload', 'webcam'], type="pil"),
|
18 |
-
outputs=[gr.
|
19 |
-
title="
|
20 |
theme=theme
|
21 |
)
|
22 |
|
|
|
6 |
theme = theme.Theme()
|
7 |
|
8 |
# Cell 1: Image Classification Model
|
9 |
+
image_pipeline = pipeline(task="image-classification", model="guillen/vit-basura-test1")
|
10 |
|
11 |
def predict_image(input_img):
|
12 |
predictions = image_pipeline(input_img)
|
|
|
15 |
image_gradio_app = gr.Interface(
|
16 |
fn=predict_image,
|
17 |
inputs=gr.Image(label="Select hot dog candidate", sources=['upload', 'webcam'], type="pil"),
|
18 |
+
outputs=[gr.Label(label="Result")],
|
19 |
+
title="Green Greta",
|
20 |
theme=theme
|
21 |
)
|
22 |
|