Nav27 commited on
Commit
527c1a8
·
verified ·
1 Parent(s): 5f922d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
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)}")