Fix type of use_xmp_metadata to be bool, rather than str

This commit is contained in:
Saba 2022-01-24 21:53:26 -05:00
parent 9fb410fc25
commit 33bc62dc19
3 changed files with 3 additions and 3 deletions

View file

@ -18,7 +18,7 @@ content-type:
input-directory: "/data/images/"
embeddings-file: "/data/generated/.image_embeddings.pt"
batch-size: 50
use-xmp-metadata: "no"
use-xmp-metadata: true
music:
input-files: null

View file

@ -15,7 +15,7 @@ content-type:
input-directory: "tests/data"
embeddings-file: "tests/data/.image_embeddings.pt"
batch-size: 50
use-xmp-metadata: "no"
use-xmp-metadata: false
music:
input-files: ["tests/data/music.org"]

View file

@ -20,7 +20,7 @@ class TextContentConfig(ConfigBase):
embeddings_file: Optional[Path]
class ImageContentConfig(ConfigBase):
use_xmp_metadata: Optional[str]
use_xmp_metadata: Optional[bool]
batch_size: Optional[int]
input_directory: Optional[Path]
input_filter: Optional[str]