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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ image_pipeline = pipeline(task="image-classification", model="guillen/vit-basura
10
 
11
  def predict_image(input_img):
12
  predictions = image_pipeline(input_img)
13
- return input_img, {p["label"]: p["score"] for p in predictions}
14
 
15
  image_gradio_app = gr.Interface(
16
  fn=predict_image,
 
10
 
11
  def predict_image(input_img):
12
  predictions = image_pipeline(input_img)
13
+ return {p["label"]: p["score"] for p in predictions}
14
 
15
  image_gradio_app = gr.Interface(
16
  fn=predict_image,