Gowtham122 commited on
Commit
fdfb527
·
verified ·
1 Parent(s): 0ac3a1d

Update app/models.py

Browse files
Files changed (1) hide show
  1. app/models.py +2 -2
app/models.py CHANGED
@@ -34,10 +34,10 @@ class DataLocation(BaseModel):
34
  logger.warning(f"Downloading model from Hugging Face: {self.cloud_uri}")
35
  # Download from Hugging Face
36
  tokenizer = AutoTokenizer.from_pretrained(
37
- self.cloud_uri, use_auth_token=AUTH_TOKEN
38
  )
39
  model = AlbertForQuestionAnswering.from_pretrained(
40
- self.cloud_uri, use_auth_token=AUTH_TOKEN
41
  )
42
  # Save the model and tokenizer locally
43
  tokenizer.save_pretrained(self.local_path)
 
34
  logger.warning(f"Downloading model from Hugging Face: {self.cloud_uri}")
35
  # Download from Hugging Face
36
  tokenizer = AutoTokenizer.from_pretrained(
37
+ self.cloud_uri, token=AUTH_TOKEN
38
  )
39
  model = AlbertForQuestionAnswering.from_pretrained(
40
+ self.cloud_uri, token=AUTH_TOKEN
41
  )
42
  # Save the model and tokenizer locally
43
  tokenizer.save_pretrained(self.local_path)