Priyanka-Kumavat-At-TE commited on
Commit
ed6af97
1 Parent(s): c7b2a81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -107,7 +107,7 @@ else:
107
  image = Image.open(file)
108
  st.write("Input Image")
109
  st.image(image, use_column_width=True)
110
- with NamedTemporaryFile(dir='.', suffix='.' + file.name.split('.')[-1]) as f:
111
  f.write(file.getbuffer())
112
  # your_function_which_takes_a_path(f.name)
113
  detect_objects(f.name)
 
107
  image = Image.open(file)
108
  st.write("Input Image")
109
  st.image(image, use_column_width=True)
110
+ with NamedTemporaryFile(dir='.', suffix='.') as f:
111
  f.write(file.getbuffer())
112
  # your_function_which_takes_a_path(f.name)
113
  detect_objects(f.name)