pritish commited on
Commit
969109c
1 Parent(s): 8644e00

delete tmp file

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -1,4 +1,5 @@
1
  import io
 
2
  import streamlit as st
3
  import requests
4
  import numpy as np
@@ -33,6 +34,7 @@ if (img_url != "") and (img_url != None):
33
  img.save('tmp.jpg')
34
  st.image(img)
35
  predict()
 
36
 
37
 
38
  img = st.file_uploader(label='Upload Image', type=['jpg', 'png'])
@@ -44,3 +46,4 @@ if img != None:
44
  img.save('tmp.jpg')
45
  st.image(img)
46
  predict()
 
 
1
  import io
2
+ import os
3
  import streamlit as st
4
  import requests
5
  import numpy as np
 
34
  img.save('tmp.jpg')
35
  st.image(img)
36
  predict()
37
+ os.remove('tmp.jpg')
38
 
39
 
40
  img = st.file_uploader(label='Upload Image', type=['jpg', 'png'])
 
46
  img.save('tmp.jpg')
47
  st.image(img)
48
  predict()
49
+ os.remove('tmp.jpg')