Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ model_name = "farhan2206/dnabert2fourth"
|
|
8 |
# Load the tokenizer and model
|
9 |
|
10 |
# Load the configuration associated with the model
|
11 |
-
config = AutoConfig.from_pretrained(model_name)
|
12 |
|
13 |
# Load the model using the correct configuration
|
14 |
tokenizer = AutoTokenizer.from_pretrained(model_name, config=config, trust_remote_code=True)
|
|
|
8 |
# Load the tokenizer and model
|
9 |
|
10 |
# Load the configuration associated with the model
|
11 |
+
config = AutoConfig.from_pretrained(model_name, trust_remote_code=True)
|
12 |
|
13 |
# Load the model using the correct configuration
|
14 |
tokenizer = AutoTokenizer.from_pretrained(model_name, config=config, trust_remote_code=True)
|