Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,8 @@ from transformers import pipeline
|
|
3 |
|
4 |
pipeline = pipeline(task="image-classification", model="julien-c/hotdog-not-hotdog")
|
5 |
|
|
|
|
|
6 |
def predict(image):
|
7 |
predictions = pipeline(image)
|
8 |
return {p["label"]: p["score"] for p in predictions}
|
|
|
3 |
|
4 |
pipeline = pipeline(task="image-classification", model="julien-c/hotdog-not-hotdog")
|
5 |
|
6 |
+
with gr.Blocks(css=".gradio-container {background-color: red}") as demo
|
7 |
+
|
8 |
def predict(image):
|
9 |
predictions = pipeline(image)
|
10 |
return {p["label"]: p["score"] for p in predictions}
|