Spaces:
Sleeping
Sleeping
fix config ?
Browse files
eval.py
CHANGED
|
@@ -380,8 +380,8 @@ def retrieve_predictions(model_checkpoint, dataset_eval, output_path, tokenizer,
|
|
| 380 |
model_path = os.path.dirname(model_checkpoint)
|
| 381 |
|
| 382 |
config_file = os.path.join(model_path, "config.json")
|
| 383 |
-
if not os.path.exists(config_file):
|
| 384 |
-
|
| 385 |
|
| 386 |
# Load model
|
| 387 |
model = transformers.AutoModelForTokenClassification.from_pretrained(model_path)
|
|
|
|
| 380 |
model_path = os.path.dirname(model_checkpoint)
|
| 381 |
|
| 382 |
config_file = os.path.join(model_path, "config.json")
|
| 383 |
+
# if not os.path.exists(config_file):
|
| 384 |
+
# raise FileNotFoundError(f"Aucun fichier config.json trouvé dans {model_path}.")
|
| 385 |
|
| 386 |
# Load model
|
| 387 |
model = transformers.AutoModelForTokenClassification.from_pretrained(model_path)
|