Ayamohamed commited on
Commit
d5c61f3
·
verified ·
1 Parent(s): ceb2520

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ import gradio as gr
9
  model_path = hf_hub_download(repo_id="Ayamohamed/DiaClassification", filename="dia_none_classifier_full.pth")
10
 
11
  # Load model
12
- model = torch.load(model_path)
13
  model.eval()
14
 
15
  transform = transforms.Compose([
 
9
  model_path = hf_hub_download(repo_id="Ayamohamed/DiaClassification", filename="dia_none_classifier_full.pth")
10
 
11
  # Load model
12
+ model = torch.load(model_path,weights_only=False)
13
  model.eval()
14
 
15
  transform = transforms.Compose([