mouadenna commited on
Commit
af00edf
·
verified ·
1 Parent(s): 624dee7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ ENCODER_WEIGHTS = 'imagenet'
25
  # Load and prepare the model
26
  @st.cache_resource
27
  def load_model():
28
- model = torch.load(r'C:\Users\MOUAD\Documents\PV panels\application\deeplabv3+ v15.pth', map_location=DEVICE)
29
  model.eval().float()
30
  return model
31
 
 
25
  # Load and prepare the model
26
  @st.cache_resource
27
  def load_model():
28
+ model = torch.load('deeplabv3+ v15.pth', map_location=DEVICE)
29
  model.eval().float()
30
  return model
31