Quinniboi10 commited on
Commit
efcf544
·
1 Parent(s): 368fd2e

Update streamlit_config.py

Browse files
Files changed (1) hide show
  1. streamlit_config.py +1 -4
streamlit_config.py CHANGED
@@ -35,10 +35,7 @@ def run():
35
  st.title("Semantic image segmentation")
36
  img_url = st.text_input('Image URL', 'https://images.unsplash.com/photo-1556911220-bff31c812dba?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2468&q=80')
37
  st.caption('Downloading Image...')
38
- img_data = requests.get(img_url).content
39
- with open('detect.jpg', 'wb') as file:
40
- file.write(img_data)
41
- file = Image.open('detect.jpg')
42
  if not file:
43
  return
44
 
 
35
  st.title("Semantic image segmentation")
36
  img_url = st.text_input('Image URL', 'https://images.unsplash.com/photo-1556911220-bff31c812dba?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2468&q=80')
37
  st.caption('Downloading Image...')
38
+ file = requests.get(img_url).content
 
 
 
39
  if not file:
40
  return
41