MonikaG7 commited on
Commit
f27f5c2
·
verified ·
1 Parent(s): 6c60ea5

Update video_model.py

Browse files
Files changed (1) hide show
  1. video_model.py +2 -2
video_model.py CHANGED
@@ -4,8 +4,8 @@ from transformers import AutoModelForImageClassification, AutoFeatureExtractor
4
  class DrowsinessModel:
5
  def __init__(self, model_path, threshold=0.15):
6
  # Инициализация модели и экстрактора признаков
7
- self.model = AutoModelForImageClassification.from_pretrained('MonikaG7/VoiceFatique')
8
- self.feature_extractor = AutoFeatureExtractor.from_pretrained('MonikaG7/VoiceFatique')
9
  self.threshold = threshold
10
 
11
  def predict(self, video_path):
 
4
  class DrowsinessModel:
5
  def __init__(self, model_path, threshold=0.15):
6
  # Инициализация модели и экстрактора признаков
7
+ self.model = AutoModelForImageClassification.from_pretrained('MonikaG7/fine-tuned_fatique_model')
8
+ self.feature_extractor = AutoFeatureExtractor.from_pretrained('MonikaG7/fine-tuned_fatique_model')
9
  self.threshold = threshold
10
 
11
  def predict(self, video_path):