Skip to content

Commit 1be2f7e

Browse files
docs: fix grammar in fp16_safetensors CLI warning (#13040)
* docs: fix grammar in fp16_safetensors CLI warning * Apply style fixes --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 314cfdd commit 1be2f7e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/diffusers/commands/fp16_safetensors.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
def conversion_command_factory(args: Namespace):
3636
if args.use_auth_token:
3737
warnings.warn(
38-
"The `--use_auth_token` flag is deprecated and will be removed in a future version. Authentication is now"
39-
" handled automatically if user is logged in."
38+
"The `--use_auth_token` flag is deprecated and will be removed in a future version."
39+
"Authentication is now handled automatically if the user is logged in."
4040
)
4141
return FP16SafetensorsCommand(args.ckpt_id, args.fp16, args.use_safetensors)
4242

@@ -92,8 +92,8 @@ def run(self):
9292
pipeline_class = getattr(import_module("diffusers"), pipeline_class_name)
9393
self.logger.info(f"Pipeline class imported: {pipeline_class_name}.")
9494

95-
# Load the appropriate pipeline. We could have use `DiffusionPipeline`
96-
# here, but just to avoid any rough edge cases.
95+
# Load the appropriate pipeline. We could have used `DiffusionPipeline`
96+
# here, but just to avoid potential edge cases.
9797
pipeline = pipeline_class.from_pretrained(
9898
self.ckpt_id, torch_dtype=torch.float16 if self.fp16 else torch.float32
9999
)

0 commit comments

Comments
 (0)