Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,10 +10,9 @@ def predict(image):
|
|
10 |
return {p["label"]: p["score"] for p in predictions}
|
11 |
|
12 |
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 |
-
theme="dark",
|
17 |
-
css=".gradio-container {background-color: red}",
|
18 |
title="Hot Dog? Or Not?",
|
19 |
).launch()
|
|
|
10 |
return {p["label"]: p["score"] for p in predictions}
|
11 |
|
12 |
gr.Interface(
|
13 |
+
theme="dark",
|
14 |
predict,
|
15 |
inputs=gr.inputs.Image(label="Upload hot dog candidate", type="filepath"),
|
16 |
outputs=gr.outputs.Label(num_top_classes=2),
|
|
|
|
|
17 |
title="Hot Dog? Or Not?",
|
18 |
).launch()
|