Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
d42125ba
Commit
d42125ba
authored
Oct 17, 2022
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add missing requirement for api and fix some typos
parent
964b63c0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
2 deletions
+4
-2
api.py
modules/api/api.py
+1
-1
requirements.txt
requirements.txt
+1
-0
requirements_versions.txt
requirements_versions.txt
+1
-0
webui.py
webui.py
+1
-1
No files found.
modules/api/api.py
View file @
d42125ba
...
...
@@ -18,7 +18,7 @@ class TextToImageResponse(BaseModel):
class
Api
:
def
__init__
(
self
,
txt2img
,
img2img
,
run_extras
,
run_pnginfo
):
def
__init__
(
self
):
self
.
router
=
APIRouter
()
app
.
add_api_route
(
"/v1/txt2img"
,
self
.
text2imgapi
,
methods
=
[
"POST"
])
...
...
requirements.txt
View file @
d42125ba
...
...
@@ -23,3 +23,4 @@ resize-right
torchdiffeq
kornia
lark
inflection
requirements_versions.txt
View file @
d42125ba
...
...
@@ -22,3 +22,4 @@ resize-right==0.0.2
torchdiffeq==0.2.3
kornia==0.6.7
lark==1.1.2
inflection==0.5.1
webui.py
View file @
d42125ba
...
...
@@ -95,7 +95,7 @@ def initialize():
signal
.
signal
(
signal
.
SIGINT
,
sigint_handler
)
def
api
()
def
api
()
:
initialize
()
from
modules.api.api
import
Api
...
...
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