matjesg commited on
Commit
e271ada
·
1 Parent(s): bec457e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -4,8 +4,7 @@ import torch
4
  from huggingface_hub import hf_hub_download
5
 
6
  def inference(repo_id, model_name, img):
7
- #model_path = hf_hub_download(repo_id=repo_id, filename=model_name)
8
- model_path = 'trained_models/cFOS_in_HC/cFOS_in_HC_ensemble_1.pt'
9
  model = torch.jit.load(model_path, map_location='cpu')
10
  n_channels = len(model.norm.mean)
11
 
 
4
  from huggingface_hub import hf_hub_download
5
 
6
  def inference(repo_id, model_name, img):
7
+ model_path = hf_hub_download(repo_id=repo_id, filename=model_name)
 
8
  model = torch.jit.load(model_path, map_location='cpu')
9
  n_channels = len(model.norm.mean)
10