ovi054 commited on
Commit
4368f06
·
verified ·
1 Parent(s): 6abb4b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -1
app.py CHANGED
@@ -2,7 +2,20 @@ import gradio as gr
2
  import vtracer
3
  import os
4
 
5
- def convert_to_vector(image, colormode, hierarchical, mode, filter_speckle, color_precision, layer_difference, corner_threshold, length_threshold, max_iterations, splice_threshold, path_precision):
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  input_path = "temp_input.jpg"
7
  output_path = "svg_output.svg"
8
 
 
2
  import vtracer
3
  import os
4
 
5
+ def convert_to_vector(
6
+ image_input,
7
+ colormode="color",
8
+ hierarchical="stacked",
9
+ mode="spline",
10
+ filter_speckle=4,
11
+ color_precision=6,
12
+ layer_difference=16,
13
+ corner_threshold=60,
14
+ length_threshold=4.0,
15
+ max_iterations=10,
16
+ splice_threshold=45,
17
+ path_precision=3
18
+ ):
19
  input_path = "temp_input.jpg"
20
  output_path = "svg_output.svg"
21