wyyadd commited on
Commit
d5e315b
·
1 Parent(s): 2360da5
Files changed (2) hide show
  1. README.md +1 -0
  2. main.py +1 -1
README.md CHANGED
@@ -9,6 +9,7 @@ app_file: app.py
9
  pinned: false
10
  license: apache-2.0
11
  ---
 
12
  # Face Type API
13
 
14
  ## Endpoint
 
9
  pinned: false
10
  license: apache-2.0
11
  ---
12
+
13
  # Face Type API
14
 
15
  ## Endpoint
main.py CHANGED
@@ -9,7 +9,7 @@ from model import MultiLabelClassifier
9
 
10
  app = FastAPI()
11
 
12
- model_path = "data/classifier.pth"
13
  model = MultiLabelClassifier(embedding_dim=4096, hidden_dim=1024)
14
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
15
  model.load_state_dict(torch.load(model_path, weights_only=True))
 
9
 
10
  app = FastAPI()
11
 
12
+ model_path = "classifier.pth"
13
  model = MultiLabelClassifier(embedding_dim=4096, hidden_dim=1024)
14
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
15
  model.load_state_dict(torch.load(model_path, weights_only=True))