MasumBhuiyan commited on
Commit
05871c1
·
verified ·
1 Parent(s): bb74494

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ app = FastAPI()
9
 
10
  # Load the pre-trained model from within the container
11
  model_uri = "model.pth"
12
- model = torch.load(model_uri, weights_only=True)
13
 
14
  # Define input schema for JSON requests
15
  class ImageInput(BaseModel):
 
9
 
10
  # Load the pre-trained model from within the container
11
  model_uri = "model.pth"
12
+ model = torch.load(model_uri, weights_only=False)
13
 
14
  # Define input schema for JSON requests
15
  class ImageInput(BaseModel):