Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
2e604233
Commit
2e604233
authored
Nov 05, 2022
by
AUTOMATIC1111
Committed by
GitHub
Nov 05, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4329 from Blucknote/patch-1
Python 3.8 typing compatibility
parents
a546e2a8
a170e3d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/api/models.py
modules/api/models.py
+4
-4
No files found.
modules/api/models.py
View file @
2e604233
...
...
@@ -5,7 +5,7 @@ from typing_extensions import Literal
from
inflection
import
underscore
from
modules.processing
import
StableDiffusionProcessingTxt2Img
,
StableDiffusionProcessingImg2Img
from
modules.shared
import
sd_upscalers
,
opts
,
parser
from
typing
import
List
from
typing
import
Dict
,
List
API_NOT_ALLOWED
=
[
"self"
,
...
...
@@ -193,8 +193,8 @@ FlagsModel = create_model("Flags", **flags)
class
SamplerItem
(
BaseModel
):
name
:
str
=
Field
(
title
=
"Name"
)
aliases
:
l
ist
[
str
]
=
Field
(
title
=
"Aliases"
)
options
:
d
ict
[
str
,
str
]
=
Field
(
title
=
"Options"
)
aliases
:
L
ist
[
str
]
=
Field
(
title
=
"Aliases"
)
options
:
D
ict
[
str
,
str
]
=
Field
(
title
=
"Options"
)
class
UpscalerItem
(
BaseModel
):
name
:
str
=
Field
(
title
=
"Name"
)
...
...
@@ -230,4 +230,4 @@ class PromptStyleItem(BaseModel):
class
ArtistItem
(
BaseModel
):
name
:
str
=
Field
(
title
=
"Name"
)
score
:
float
=
Field
(
title
=
"Score"
)
category
:
str
=
Field
(
title
=
"Category"
)
\ No newline at end of file
category
:
str
=
Field
(
title
=
"Category"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment