Commit 96af5bf
authored
Fix unable to save_pretrained when using pathlib (huggingface#1972)
* fix PosixPath is not JSON serializable
* use PosixPath
* forgot elif like a dummy1 parent bbc2a03 commit 96af5bf
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
507 | 508 | | |
508 | 509 | | |
509 | 510 | | |
| 511 | + | |
| 512 | + | |
510 | 513 | | |
511 | 514 | | |
512 | 515 | | |
| |||
0 commit comments