Spaces:
Running
Running
cyk
commited on
Commit
•
a3e6571
1
Parent(s):
98a649d
SAA+
Browse files
app.py
CHANGED
@@ -90,15 +90,15 @@ def func(image, anomaly_description, object_name, object_number, mask_number, ar
|
|
90 |
|
91 |
|
92 |
with gr.Blocks() as demo:
|
93 |
-
with gr.
|
94 |
-
with gr.
|
95 |
image = gr.Image(label="Image")
|
96 |
-
anomaly_description = gr.Textbox(label="Anomaly Description")
|
97 |
-
object_name = gr.Textbox(label="Object Name")
|
98 |
-
object_number = gr.Textbox(label="Object Number")
|
99 |
-
mask_number = gr.Textbox(label="Mask Number")
|
100 |
-
area_threashold = gr.Textbox(label="Area Threshold")
|
101 |
-
with gr.
|
102 |
anomaly_score = gr.Image(label="Anomaly Score")
|
103 |
saliency_map = gr.Image(label="Saliency Map")
|
104 |
|
|
|
90 |
|
91 |
|
92 |
with gr.Blocks() as demo:
|
93 |
+
with gr.Row():
|
94 |
+
with gr.Column():
|
95 |
image = gr.Image(label="Image")
|
96 |
+
anomaly_description = gr.Textbox(label="Anomaly Description (e.g. color defect. hole. black defect. wick hole. spot. )")
|
97 |
+
object_name = gr.Textbox(label="Object Name (e.g. candle)")
|
98 |
+
object_number = gr.Textbox(label="Object Number (e.g. 4)")
|
99 |
+
mask_number = gr.Textbox(label="Mask Number (e.g. 1)")
|
100 |
+
area_threashold = gr.Textbox(label="Area Threshold (e.g. 0.3)")
|
101 |
+
with gr.Column():
|
102 |
anomaly_score = gr.Image(label="Anomaly Score")
|
103 |
saliency_map = gr.Image(label="Saliency Map")
|
104 |
|