fix broken textual inversion extras tab

This commit is contained in:
AUTOMATIC 2023-01-22 00:16:26 +03:00
parent fe7a623e6b
commit f2eae6127d

View File

@ -1,3 +1,4 @@
import json
import os
from modules import ui_extra_networks, sd_hijack
@ -24,7 +25,7 @@ class ExtraNetworksPageTextualInversion(ui_extra_networks.ExtraNetworksPage):
"name": embedding.name,
"filename": embedding.filename,
"preview": preview,
"prompt": embedding.name,
"prompt": json.dumps(embedding.name),
"local_preview": path + ".preview.png",
}