karbanovich commited on
Commit
2bc9ed8
·
verified ·
1 Parent(s): 1bbdd78

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -81,7 +81,7 @@ def convert_image(image_url, color_mode, hierarchical, mode, filter_speckle,
81
  return gr.HTML(f'<p style="color: red;">Error uploading to AWS: {str(e)}</p>'), None, None
82
 
83
  # Clean up the temporary file
84
- os.unlink(temp_file_path)
85
 
86
  # Return the SVG wrapped in HTML and the file URL
87
  return gr.HTML(f'<svg viewBox="0 0 {image.width} {image.height}">{svg_str}</svg>'), file_url, svg_str
 
81
  return gr.HTML(f'<p style="color: red;">Error uploading to AWS: {str(e)}</p>'), None, None
82
 
83
  # Clean up the temporary file
84
+ # os.unlink(temp_file_path)
85
 
86
  # Return the SVG wrapped in HTML and the file URL
87
  return gr.HTML(f'<svg viewBox="0 0 {image.width} {image.height}">{svg_str}</svg>'), file_url, svg_str