praeclarumjj3 commited on
Commit
05d08db
1 Parent(s): d91e586

Change canvas version

Browse files
Files changed (2) hide show
  1. app.py +0 -3
  2. requirements.txt +1 -1
app.py CHANGED
@@ -12,9 +12,6 @@ import legacy
12
  import cv2
13
  from streamlit_drawable_canvas import st_canvas
14
  import streamlit as st
15
- from torchvision.transforms import ToTensor, ToPILImage
16
- image_to_tensor = ToTensor()
17
- tensor_to_image = ToPILImage()
18
 
19
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
20
  class_idx = None
12
  import cv2
13
  from streamlit_drawable_canvas import st_canvas
14
  import streamlit as st
 
 
 
15
 
16
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
17
  class_idx = None
requirements.txt CHANGED
@@ -22,5 +22,5 @@ easydict
22
  kornia==0.5.0
23
  ipython
24
  Jinja2
25
- streamlit-drawable-canvas
26
  streamlit==1.10.0
22
  kornia==0.5.0
23
  ipython
24
  Jinja2
25
+ streamlit-drawable-canvas==0.8.0
26
  streamlit==1.10.0