From ec9fe682596999ed45d7e504318aea050824fd1e Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 14 Dec 2022 19:38:07 +0100 Subject: [PATCH] Undefined name: from typing import List (#31) --- python_coreml_stable_diffusion/pipeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_coreml_stable_diffusion/pipeline.py b/python_coreml_stable_diffusion/pipeline.py index 79751ca..61f9bbf 100644 --- a/python_coreml_stable_diffusion/pipeline.py +++ b/python_coreml_stable_diffusion/pipeline.py @@ -38,7 +38,7 @@ from python_coreml_stable_diffusion.coreml_model import ( import time import torch # Only used for `torch.from_tensor` in `pipe.scheduler.step()` from transformers import CLIPFeatureExtractor, CLIPTokenizer -from typing import Union, Optional +from typing import List, Optional, Union class CoreMLStableDiffusionPipeline(DiffusionPipeline):