Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
H
Hydra Node Http
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
Hydra Node Http
Commits
bf87d5d0
Commit
bf87d5d0
authored
Aug 24, 2022
by
kurumuz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Masker Dict
parent
47f4fecf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
main.py
main.py
+6
-2
No files found.
main.py
View file @
bf87d5d0
...
...
@@ -6,7 +6,7 @@ from sentry_sdk import capture_exception
from
sentry_sdk
import
capture_message
from
sentry_sdk
import
start_transaction
from
hydra_node.config
import
init_config_model
from
typing
import
Optional
,
List
from
typing
import
Optional
,
List
,
TypedDict
import
socket
from
hydra_node.sanitize
import
sanitize_input
import
uvicorn
...
...
@@ -54,6 +54,10 @@ def shutdown_event():
def
root
():
return
"OK"
class
Masker
(
TypedDict
):
seed
:
int
mask
:
str
class
GenerationRequest
(
BaseModel
):
prompt
:
str
image
:
str
=
None
...
...
@@ -78,7 +82,7 @@ class GenerationRequest(BaseModel):
noise
:
float
=
0.667
mitigate
:
bool
=
False
module
:
str
=
None
masks
:
List
[
st
r
]
=
None
masks
:
List
[
Maske
r
]
=
None
class
GenerationOutput
(
BaseModel
):
output
:
List
[
str
]
...
...
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