DamarJati commited on
Commit
8fab564
·
verified ·
1 Parent(s): 7d223a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -321,13 +321,13 @@ with gr.Blocks(css= "style.css") as app:
321
  with gr.Column():
322
  # Components
323
  image = gr.Image(type="pil", image_mode="RGBA", label="Input")
324
- clear_button = gr.ClearButton(components=[image, model_repo, general_thresh, general_mcut_enabled, character_thresh, character_mcut_enabled], variant="secondary", size="lg")
325
  submit_button = gr.Button(value="Submit", variant="primary", size="lg")
326
  model_repo = gr.Dropdown(dropdown_list, value=SWINV2_MODEL_DSV3_REPO, label="Model")
327
  general_thresh = gr.Slider(0, 1, step=args.score_slider_step, value=args.score_general_threshold, label="General Tags Threshold", scale=3)
328
  general_mcut_enabled = gr.Checkbox(value=False, label="Use MCut threshold", scale=1)
329
  character_thresh = gr.Slider(0, 1, step=args.score_slider_step, value=args.score_character_threshold, label="Character Tags Threshold", scale=3)
330
  character_mcut_enabled = gr.Checkbox(value=False, label="Use MCut threshold", scale=1)
 
331
 
332
  with gr.Column():
333
  sorted_general_strings = gr.Textbox(label="Output (string)")
 
321
  with gr.Column():
322
  # Components
323
  image = gr.Image(type="pil", image_mode="RGBA", label="Input")
 
324
  submit_button = gr.Button(value="Submit", variant="primary", size="lg")
325
  model_repo = gr.Dropdown(dropdown_list, value=SWINV2_MODEL_DSV3_REPO, label="Model")
326
  general_thresh = gr.Slider(0, 1, step=args.score_slider_step, value=args.score_general_threshold, label="General Tags Threshold", scale=3)
327
  general_mcut_enabled = gr.Checkbox(value=False, label="Use MCut threshold", scale=1)
328
  character_thresh = gr.Slider(0, 1, step=args.score_slider_step, value=args.score_character_threshold, label="Character Tags Threshold", scale=3)
329
  character_mcut_enabled = gr.Checkbox(value=False, label="Use MCut threshold", scale=1)
330
+ clear_button = gr.ClearButton(components=[image, model_repo, general_thresh, general_mcut_enabled, character_thresh, character_mcut_enabled], variant="secondary", size="lg")
331
 
332
  with gr.Column():
333
  sorted_general_strings = gr.Textbox(label="Output (string)")