cyk commited on
Commit
98a649d
1 Parent(s): c4dc515
Files changed (1) hide show
  1. app.py +11 -9
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
- image = gr.Image(label="Image")
94
- anomaly_description = gr.Textbox(label="Anomaly Description")
95
- object_name = gr.Textbox(label="Object Name")
96
- object_number = gr.Textbox(label="Object Number")
97
- mask_number = gr.Textbox(label="Mask Number")
98
- area_threashold = gr.Textbox(label="Area Threshold")
99
-
100
- anomaly_score = gr.Image(label="Anomaly Score")
101
- saliency_map = gr.Image(label="Saliency Map")
 
 
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,