Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,13 +9,13 @@ def predict(image):
|
|
9 |
predictions = pipeline(image)
|
10 |
return {p["label"]: p["score"] for p in predictions}
|
11 |
|
12 |
-
|
13 |
-
description = 'This is a demo of the hotdog-not-hotdog model by julien-c.<br><br>'
|
14 |
|
15 |
gr.Interface(
|
16 |
predict,
|
17 |
inputs=gr.inputs.Image(label="Upload hot dog candidate", type="filepath"),
|
18 |
outputs=gr.outputs.Label(num_top_classes=2),
|
19 |
-
title="Hot
|
|
|
20 |
css=".gradio-container {background-image: url('file=BG.png')}"
|
21 |
).launch()
|
|
|
9 |
predictions = pipeline(image)
|
10 |
return {p["label"]: p["score"] for p in predictions}
|
11 |
|
12 |
+
|
|
|
13 |
|
14 |
gr.Interface(
|
15 |
predict,
|
16 |
inputs=gr.inputs.Image(label="Upload hot dog candidate", type="filepath"),
|
17 |
outputs=gr.outputs.Label(num_top_classes=2),
|
18 |
+
title = "<br>Hot dog or not?<br>"
|
19 |
+
description = 'This is a demo of the hotdog-not-hotdog model by julien-c.<br><br>',
|
20 |
css=".gradio-container {background-image: url('file=BG.png')}"
|
21 |
).launch()
|