Spaces:
Running
Running
Update app.py
Browse files
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,
|
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:
|