Update app.py
Browse files
app.py
CHANGED
@@ -92,7 +92,7 @@ def process_image(pilimg):
|
|
92 |
#gr.Warning("Classified as Defective but defect cannot be detected, ERROR!")
|
93 |
summary_str = "The cap is classifed as Defective but defect cannot be detected, ERROR!"
|
94 |
|
95 |
-
return out_pilimg, summary_str
|
96 |
|
97 |
title = "Detect the status of the cap: DEFECTIVE or GOOD"
|
98 |
interface = gr.Interface(
|
@@ -100,7 +100,7 @@ interface = gr.Interface(
|
|
100 |
inputs=gr.Image(type="pil", label="Input Image"),
|
101 |
outputs=[
|
102 |
gr.Image(type="pil", label="Classification/Detection result"),
|
103 |
-
gr.
|
104 |
],
|
105 |
title=title,
|
106 |
)
|
|
|
92 |
#gr.Warning("Classified as Defective but defect cannot be detected, ERROR!")
|
93 |
summary_str = "The cap is classifed as Defective but defect cannot be detected, ERROR!"
|
94 |
|
95 |
+
return out_pilimg, f"**{summary_str}**"
|
96 |
|
97 |
title = "Detect the status of the cap: DEFECTIVE or GOOD"
|
98 |
interface = gr.Interface(
|
|
|
100 |
inputs=gr.Image(type="pil", label="Input Image"),
|
101 |
outputs=[
|
102 |
gr.Image(type="pil", label="Classification/Detection result"),
|
103 |
+
gr.Markdown(label="Classification/Detection Summary"),
|
104 |
],
|
105 |
title=title,
|
106 |
)
|