Spaces:
Sleeping
Sleeping
ShebMichel
commited on
Commit
•
15c7bdb
1
Parent(s):
97cbbcc
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,8 @@ from huggingface_hub import InferenceClient
|
|
3 |
from transformers import pipeline
|
4 |
|
5 |
|
|
|
|
|
6 |
def predict(image):
|
7 |
predictions = pipeline(image)
|
8 |
return {p["label"]: p["score"] for p in predictions}
|
|
|
3 |
from transformers import pipeline
|
4 |
|
5 |
|
6 |
+
pipeline = pipeline(task="image-classification", model="julien-c/hotdog-not-hotdog")
|
7 |
+
|
8 |
def predict(image):
|
9 |
predictions = pipeline(image)
|
10 |
return {p["label"]: p["score"] for p in predictions}
|