Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,8 @@ def convert_image_to_dxf(image_file, output_folder=None, use_lines=False):
|
|
22 |
image_path = image_file
|
23 |
output_path = os.path.join(output_folder, f"{current_date}_output.dxf")
|
24 |
debug_output_path = os.path.join(output_folder, f"{current_date}_debug.png")
|
25 |
-
|
|
|
26 |
# Prepare the command arguments
|
27 |
command_args = ["./SimpleImageToDxfHavePass"]
|
28 |
|
@@ -31,7 +32,7 @@ def convert_image_to_dxf(image_file, output_folder=None, use_lines=False):
|
|
31 |
command_args.append("--use-lines")
|
32 |
|
33 |
# Add other arguments
|
34 |
-
command_args.extend([f"--imagePath={image_path}", f"--outputPath={
|
35 |
|
36 |
# Execute conversion command
|
37 |
result = subprocess.run(
|
|
|
22 |
image_path = image_file
|
23 |
output_path = os.path.join(output_folder, f"{current_date}_output.dxf")
|
24 |
debug_output_path = os.path.join(output_folder, f"{current_date}_debug.png")
|
25 |
+
output_pathsimple = os.path.join(output_folder, "_output.dxf")
|
26 |
+
debug_output_pathsimple = os.path.join(output_folder, "_debug.png")
|
27 |
# Prepare the command arguments
|
28 |
command_args = ["./SimpleImageToDxfHavePass"]
|
29 |
|
|
|
32 |
command_args.append("--use-lines")
|
33 |
|
34 |
# Add other arguments
|
35 |
+
command_args.extend([f"--imagePath={image_path}", f"--outputPath={output_pathsimple}", f"--debug-output={debug_output_pathsimple}"])
|
36 |
|
37 |
# Execute conversion command
|
38 |
result = subprocess.run(
|