ovi054 commited on
Commit
1758655
·
verified ·
1 Parent(s): 4d92d66

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -70,14 +70,14 @@ with gr.Blocks(css=css) as app:
70
  with gr.Accordion("Clustering", open=False):
71
  colormode = gr.Radio([("COLOR","color"),("B/W", "binary")], value="color", label="Color Mode", show_label=False)
72
  filter_speckle = gr.Slider(0, 128, value=4, step=1, label="Filter Speckle", info="Cleaner")
73
- color_precision = gr.Slider(1, 8, value=6, step=1, label="Color Precision")
74
- layer_difference = gr.Slider(0, 128, value=16, step=1, label="Layer Difference")
75
  hierarchical = gr.Radio([("STACKED","stacked"), ("CUTOUT","cutout")], value="stacked", label="Hierarchical Mode",show_label=False)
76
  with gr.Accordion("Curve Fitting", open=False):
77
  mode = gr.Radio([("SPLINE","spline"),("POLYGON", "polygon"), ("PIXEL","none")], value="spline", label="Mode", show_label=False)
78
- corner_threshold = gr.Slider(0, 180, value=60, step=1, label="Corner Threshold")
79
- length_threshold = gr.Slider(3.5, 10, value=4.0, step=0.1, label="Length Threshold")
80
- splice_threshold = gr.Slider(0, 180, value=45, step=1, label="Splice Threshold")
81
  max_iterations = gr.Slider(1, 20, value=10, step=1, label="Max Iterations", visible=False)
82
  path_precision = gr.Slider(1, 10, value=3, step=1, label="Path Precision", visible=False)
83
  output_text = gr.Textbox(label="Selected Mode")
 
70
  with gr.Accordion("Clustering", open=False):
71
  colormode = gr.Radio([("COLOR","color"),("B/W", "binary")], value="color", label="Color Mode", show_label=False)
72
  filter_speckle = gr.Slider(0, 128, value=4, step=1, label="Filter Speckle", info="Cleaner")
73
+ color_precision = gr.Slider(1, 8, value=6, step=1, label="Color Precision", info="More accurate")
74
+ layer_difference = gr.Slider(0, 128, value=16, step=1, label="Gradient Step", info="Less layers")
75
  hierarchical = gr.Radio([("STACKED","stacked"), ("CUTOUT","cutout")], value="stacked", label="Hierarchical Mode",show_label=False)
76
  with gr.Accordion("Curve Fitting", open=False):
77
  mode = gr.Radio([("SPLINE","spline"),("POLYGON", "polygon"), ("PIXEL","none")], value="spline", label="Mode", show_label=False)
78
+ corner_threshold = gr.Slider(0, 180, value=60, step=1, label="Corner Threshold", info="Smoother")
79
+ length_threshold = gr.Slider(3.5, 10, value=4.0, step=0.1, label="Segment Length", info ="More coarse")
80
+ splice_threshold = gr.Slider(0, 180, value=45, step=1, label="Splice Threshold", info="Less accurate")
81
  max_iterations = gr.Slider(1, 20, value=10, step=1, label="Max Iterations", visible=False)
82
  path_precision = gr.Slider(1, 10, value=3, step=1, label="Path Precision", visible=False)
83
  output_text = gr.Textbox(label="Selected Mode")