Max005 commited on
Commit
4e86f46
·
1 Parent(s): 7fb32a3

Update DeepfakeModel.py

Browse files
Files changed (1) hide show
  1. DeepfakeModel.py +3 -2
DeepfakeModel.py CHANGED
@@ -6,11 +6,12 @@ import torchaudio
6
  import torch.nn.functional as F
7
  import torch
8
  from transformers import AutoProcessor, AutoModelForAudioClassification
9
- from pathlib import Path
10
 
11
  app_dir = Path(__file__).parent
12
  # Model setup
13
- model_path = app_dir + r"\Deepfake\model"
 
14
  processor = AutoProcessor.from_pretrained(model_path)
15
  model = AutoModelForAudioClassification.from_pretrained(
16
  pretrained_model_name_or_path=model_path,
 
6
  import torch.nn.functional as F
7
  import torch
8
  from transformers import AutoProcessor, AutoModelForAudioClassification
9
+ from pathlib import Path
10
 
11
  app_dir = Path(__file__).parent
12
  # Model setup
13
+ model_path = app_dir / "Deepfake" / "model"
14
+
15
  processor = AutoProcessor.from_pretrained(model_path)
16
  model = AutoModelForAudioClassification.from_pretrained(
17
  pretrained_model_name_or_path=model_path,