paloma99 commited on
Commit
acf5da7
·
verified ·
1 Parent(s): b6913f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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="julien-c/hotdog-not-hotdog")
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.Image(label="Processed Image"), gr.Label(label="Result", num_top_classes=2)],
19
- title="Hot Dog? Or Not?",
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