AAAAAAyq commited on
Commit
086b1c4
1 Parent(s): ca3609f

Update the interface layout

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -28,12 +28,12 @@ description = """This is a demo on Github project 🏃 [Fast Segment Anything Mo
28
 
29
  """
30
 
31
- examples = [["assets/sa_192.jpg"], ["assets/sa_414.jpg"],
32
- ["assets/sa_561.jpg"], ["assets/sa_862.jpg"],
33
- ["assets/sa_1309.jpg"], ["assets/sa_8776.jpg"],
34
- ["assets/sa_10039.jpg"], ["assets/sa_11025.jpg"]]
35
 
36
- default_example = examples[5]
37
 
38
  css = "h1 { text-align: center } .about { text-align: justify; padding-left: 10%; padding-right: 10%; }"
39
 
@@ -197,7 +197,7 @@ cond_img = gr.Image(label="Input", value=default_example[0], type='pil')
197
 
198
  segm_img = gr.Image(label="Segmented Image", interactive=False, type='pil')
199
 
200
- input_size_slider = gr.components.Slider(minimum=512, maximum=1024, value=1024, step=64, label='input_size')
201
 
202
  with gr.Blocks(css=css, title='Fast Segment Anything') as demo:
203
  with gr.Row():
 
28
 
29
  """
30
 
31
+ examples = [["assets/sa_8776.jpg"], ["assets/sa_414.jpg"],
32
+ ["assets/sa_1309.jpg"], ["assets/sa_11025.jpg"],
33
+ ["assets/sa_561.jpg"], ["assets/sa_192.jpg"],
34
+ ["assets/sa_10039.jpg"], ["assets/sa_862.jpg"]]
35
 
36
+ default_example = examples[0]
37
 
38
  css = "h1 { text-align: center } .about { text-align: justify; padding-left: 10%; padding-right: 10%; }"
39
 
 
197
 
198
  segm_img = gr.Image(label="Segmented Image", interactive=False, type='pil')
199
 
200
+ input_size_slider = gr.components.Slider(minimum=512, maximum=1024, value=1024, step=64, label='Input_size (Our model was trained on a size of 1024)')
201
 
202
  with gr.Blocks(css=css, title='Fast Segment Anything') as demo:
203
  with gr.Row():