KurtLin commited on
Commit
e814975
·
verified ·
1 Parent(s): aacfa14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -61,7 +61,7 @@ with my_app:
61
  with gr.Column():
62
  with gr.Row():
63
  img_source = gr.Image(label="Please select picture and click the part to segment",
64
- value='./images/truck.jpg').style(height=500, width=1000)
65
  with gr.Row():
66
  coords = gr.Label(label="Image Coordinate")
67
  model_choice = gr.Dropdown(['ViT-base', 'ViT-large', 'ViT-huge'], label='Model Backbone')
@@ -70,15 +70,15 @@ with my_app:
70
  with gr.Row():
71
  score1 = gr.Label(label="Mask 1 Confidence")
72
  with gr.Row():
73
- img_output1 = gr.Image(label="Output Mask 1").style(height=500, width=1000)
74
  with gr.Row():
75
  score2 = gr.Label(label="Mask 2 Confidence")
76
  with gr.Row():
77
- img_output2 = gr.Image(label="Output Mask 2").style(height=500, width=1000)
78
  with gr.Row():
79
  score3 = gr.Label(label="Mask 3 Confidence")
80
  with gr.Row():
81
- img_output3 = gr.Image(label="Output Mask 3").style(height=500, width=1000)
82
 
83
  img_source.select(get_coords, [], coords)
84
  infer.click(
 
61
  with gr.Column():
62
  with gr.Row():
63
  img_source = gr.Image(label="Please select picture and click the part to segment",
64
+ value='./images/truck.jpg', height=500, width=1000)
65
  with gr.Row():
66
  coords = gr.Label(label="Image Coordinate")
67
  model_choice = gr.Dropdown(['ViT-base', 'ViT-large', 'ViT-huge'], label='Model Backbone')
 
70
  with gr.Row():
71
  score1 = gr.Label(label="Mask 1 Confidence")
72
  with gr.Row():
73
+ img_output1 = gr.Image(label="Output Mask 1", height=500, width=1000)
74
  with gr.Row():
75
  score2 = gr.Label(label="Mask 2 Confidence")
76
  with gr.Row():
77
+ img_output2 = gr.Image(label="Output Mask 2", height=500, width=1000)
78
  with gr.Row():
79
  score3 = gr.Label(label="Mask 3 Confidence")
80
  with gr.Row():
81
+ img_output3 = gr.Image(label="Output Mask 3", height=500, width=1000)
82
 
83
  img_source.select(get_coords, [], coords)
84
  infer.click(