You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -233,8 +231,8 @@ class PreprocessResponse(BaseModel):
233
231
234
232
classSamplerItem(BaseModel):
235
233
name: str=Field(title="Name")
236
-
aliases: List[str] =Field(title="Aliases")
237
-
options: Dict[str, str] =Field(title="Options")
234
+
aliases: list[str] =Field(title="Aliases")
235
+
options: dict[str, str] =Field(title="Options")
238
236
239
237
classUpscalerItem(BaseModel):
240
238
name: str=Field(title="Name")
@@ -285,8 +283,8 @@ class EmbeddingItem(BaseModel):
285
283
vectors: int=Field(title="Vectors", description="The number of vectors in the embedding")
286
284
287
285
classEmbeddingsResponse(BaseModel):
288
-
loaded: Dict[str, EmbeddingItem] =Field(title="Loaded", description="Embeddings loaded for the current model")
289
-
skipped: Dict[str, EmbeddingItem] =Field(title="Skipped", description="Embeddings skipped for the current model (likely due to architecture incompatibility)")
286
+
loaded: dict[str, EmbeddingItem] =Field(title="Loaded", description="Embeddings loaded for the current model")
287
+
skipped: dict[str, EmbeddingItem] =Field(title="Skipped", description="Embeddings skipped for the current model (likely due to architecture incompatibility)")
Copy file name to clipboardExpand all lines: modules/prompt_parser.py
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,6 @@
2
2
3
3
importre
4
4
fromcollectionsimportnamedtuple
5
-
fromtypingimportList
6
5
importlark
7
6
8
7
# a prompt like this: "fantasy landscape with a [mountain:lake:0.25] and [an oak:a christmas tree:0.75][ in foreground::0.6][ in background:0.25] [shoddy:masterful:0.5]"
0 commit comments