dupthotshering commited on
Commit
34b3e6a
·
verified ·
1 Parent(s): deda242

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ from transformers import pipeline
4
  pipeline = pipeline(task="image-classification", model="julien-c/hotdog-not-hotdog")
5
 
6
  def predict(input_img):
7
- predictions = pipe(input_img)
8
  return input_img, {p["label"]: p["score"] for p in predictions}
9
 
10
  gradio_app = gr.Interface(
 
4
  pipeline = pipeline(task="image-classification", model="julien-c/hotdog-not-hotdog")
5
 
6
  def predict(input_img):
7
+ predictions = pipeline(input_img)
8
  return input_img, {p["label"]: p["score"] for p in predictions}
9
 
10
  gradio_app = gr.Interface(