mirror of
https://github.com/openvinotoolkit/stable-diffusion-webui.git
synced 2024-12-13 17:45:06 +03:00
alternative solution to fix styles load when edited by human #9765 as suggested by akx
This commit is contained in:
parent
f6fc7916c4
commit
ad3a7f2ab9
@ -43,7 +43,7 @@ class StyleDatabase:
|
||||
return
|
||||
|
||||
with open(self.path, "r", encoding="utf-8-sig", newline='') as file:
|
||||
reader = csv.DictReader(file)
|
||||
reader = csv.DictReader(file, skipinitialspace=True)
|
||||
for row in reader:
|
||||
# Support loading old CSV format with "name, text"-columns
|
||||
prompt = row["prompt"] if "prompt" in row else row["text"]
|
||||
|
Loading…
Reference in New Issue
Block a user