Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|