Spaces:
Running
Running
cyk
commited on
Commit
•
98a649d
1
Parent(s):
c4dc515
SAA+
Browse files
app.py
CHANGED
@@ -90,15 +90,17 @@ def func(image, anomaly_description, object_name, object_number, mask_number, ar
|
|
90 |
|
91 |
|
92 |
with gr.Blocks() as demo:
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
|
|
|
|
102 |
|
103 |
greet_btn = gr.Button("Inference")
|
104 |
greet_btn.click(fn=func,
|
|
|
90 |
|
91 |
|
92 |
with gr.Blocks() as demo:
|
93 |
+
with gr.Column():
|
94 |
+
with gr.Row():
|
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.Row():
|
102 |
+
anomaly_score = gr.Image(label="Anomaly Score")
|
103 |
+
saliency_map = gr.Image(label="Saliency Map")
|
104 |
|
105 |
greet_btn = gr.Button("Inference")
|
106 |
greet_btn.click(fn=func,
|