HusseinEid commited on
Commit
ac4c2b0
·
verified ·
1 Parent(s): d7d5dcd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ config_file = "adapter_config.json"
10
 
11
  try:
12
  # Load the configuration directly from the repository
13
- config = AutoConfig.from_pretrained(model_repo, config=config_file, token=hf_token)
14
  # Load the model from Hugging Face using the config
15
  model = AutoModel.from_pretrained(model_repo, config=config, token=hf_token)
16
  except OSError as e:
 
10
 
11
  try:
12
  # Load the configuration directly from the repository
13
+ config = AutoConfig.from_pretrained(model_repo, config_file_name=config_file, token=hf_token)
14
  # Load the model from Hugging Face using the config
15
  model = AutoModel.from_pretrained(model_repo, config=config, token=hf_token)
16
  except OSError as e: