Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
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):
|