Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from transformers import pipeline
|
|
3 |
|
4 |
pipeline = pipeline(task="image-classification", model="julien-c/hotdog-not-hotdog")
|
5 |
|
6 |
-
|
7 |
|
8 |
def predict(image):
|
9 |
predictions = pipeline(image)
|
@@ -13,5 +13,6 @@ gr.Interface(
|
|
13 |
predict,
|
14 |
inputs=gr.inputs.Image(label="Upload hot dog candidate", type="filepath"),
|
15 |
outputs=gr.outputs.Label(num_top_classes=2),
|
|
|
16 |
title="Hot Dog? Or Not?",
|
17 |
).launch()
|
|
|
3 |
|
4 |
pipeline = pipeline(task="image-classification", model="julien-c/hotdog-not-hotdog")
|
5 |
|
6 |
+
|
7 |
|
8 |
def predict(image):
|
9 |
predictions = pipeline(image)
|
|
|
13 |
predict,
|
14 |
inputs=gr.inputs.Image(label="Upload hot dog candidate", type="filepath"),
|
15 |
outputs=gr.outputs.Label(num_top_classes=2),
|
16 |
+
css=".gradio-container {background-color: red}",
|
17 |
title="Hot Dog? Or Not?",
|
18 |
).launch()
|