ariG23498 HF staff commited on
Commit
0325baf
1 Parent(s): 321f9f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,8 +30,8 @@ image, preprocessed_image = utils.load_image_from_url(
30
  model_type="dino"
31
  )
32
  if uploaded_file:
33
- image = Image.open(im)
34
- preprocessed_image = utils.preprocess_image(image, model_type)
35
 
36
  st.image(image, caption="Original Image")
37
 
 
30
  model_type="dino"
31
  )
32
  if uploaded_file:
33
+ image = Image.open(uploaded_file)
34
+ preprocessed_image = utils.preprocess_image(image, "dino")
35
 
36
  st.image(image, caption="Original Image")
37