Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -102,5 +102,10 @@ if uploaded_file is not None:
|
|
| 102 |
img_input = imread(input_path)
|
| 103 |
img_output = imread(output_path)
|
| 104 |
display(img_input, img_output)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
except Exception as e:
|
| 106 |
st.error(f"An error occurred: {str(e)}")
|
|
|
|
| 102 |
img_input = imread(input_path)
|
| 103 |
img_output = imread(output_path)
|
| 104 |
display(img_input, img_output)
|
| 105 |
+
#delete the uploaded file, input and output images
|
| 106 |
+
os.remove(file_path)
|
| 107 |
+
os.remove(input_path)
|
| 108 |
+
os.remove(output_path)
|
| 109 |
+
|
| 110 |
except Exception as e:
|
| 111 |
st.error(f"An error occurred: {str(e)}")
|