diff --git a/index.html b/index.html index 56278885..03d001f7 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,8 @@ body { font-family: Arial, Helvetica, sans-serif; font-size: 11pt; + background-color: rgb(32, 33, 36); + color: #eee; } a { color: rgb(0, 102, 204); @@ -12,17 +14,11 @@ a:visited { color: rgb(0, 102, 204); } - @media (prefers-color-scheme: dark) { - body { - background-color: rgb(32, 33, 36); - color: #eee; - } - } label { font-size: 10pt; } #prompt { - width: 50vw; + width: 100%; height: 50pt; } @media screen and (max-width: 600px) { @@ -32,10 +28,11 @@ } .image_preview_container { display: none; + margin-top: 10pt; } .image_clear_btn { position: absolute; - transform: translateX(-50%); + transform: translateX(-50%) translateY(-35%); background: black; color: white; border: 2pt solid #ccc; @@ -45,26 +42,31 @@ border-radius: 8pt; width: 16pt; height: 16pt; - font-size: 10pt; + font-family: Verdana; + font-size: 8pt; } - #configHeader { - margin-top: 5px; - margin-bottom: 5px; - font-size: 10pt; - } - #config { + #editor-settings-entries { font-size: 9pt; margin-bottom: 5px; padding-left: 10px; + list-style-type: none; + } + #editor-settings-entries li { + padding-bottom: 3pt; + } + #guidance_scale { + transform: translateY(30%); } #outputMsg { font-size: small; } #footer { - border-top: 1px solid #999; - margin-top: 10px; - padding-top: 10px; font-size: small; + padding-left: 10pt; + background: none; + } + #footer-legal { + font-size: 8pt; } .imgSeedLabel { position: absolute; @@ -98,54 +100,247 @@ .imgItemInfo { opacity: 0.5; } + + #container { + width: 75%; + margin-left: auto; + margin-right: auto; + } + @media screen and (max-width: 1400px) { + #container { + width: 100%; + } + } + #meta small { + font-size: 11pt; + } + #editor { + padding: 5px; + } + #editor label { + font-weight: bold; + } + #preview { + padding: 5px; + } + #editor-inputs { + margin-bottom: 20px; + } + #editor-inputs-prompt { + flex: 1; + } + #editor-inputs .row { + padding-bottom: 10px; + } + #makeImage { + border-radius: 6px; + } + #editor-modifiers h5 { + padding: 5pt 0; + margin: 0; + } + #makeImage { + flex: 0 0 70px; + background: rgb(80, 0, 185); + border: 2px solid rgb(40, 0, 78); + color: rgb(255, 221, 255); + width: 100%; + height: 30pt; + } + #makeImage:hover { + background: rgb(93, 0, 214); + } + .flex-container { + display: flex; + } + .col-50 { + flex: 50%; + } + .col-free { + flex: 1; + } + .collapsible { + cursor: pointer; + } + .collapsible-content { + display: none; + padding-left: 15px; + } + .collapsible-content h5 { + padding: 5pt 0pt; + margin: 0; + font-size: 10pt; + } + .collapsible-handle { + color: white; + padding-right: 5px; + } + .panel-box { + background: rgb(44, 45, 48); + border: 1px solid rgb(47, 49, 53); + border-radius: 7px; + padding: 5px; + margin-bottom: 15px; + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.15), 0 6px 20px 0 rgba(0, 0, 0, 0.15); + } + .panel-box h4 { + margin: 0; + padding: 2px 0; + } + .prompt-modifier-tag { + border: 1px solid rgb(10, 0, 24); + border-radius: 4px; + padding: 0pt 3pt; + margin-right: 2pt; + cursor: pointer; + display: inline; + background: rgb(163, 163, 163); + color: black; + line-height: 25pt; + float: left; + font-size: 9pt; + } + .prompt-modifier-tag:hover { + background: black; + color: white; + } + #editor-modifiers-entries .prompt-modifier-tag { + background: #110f0f; + color: rgb(212, 212, 212); + margin-bottom: 4pt; + font-size: 10pt; + } + #editor-modifiers-entries .prompt-modifier-tag:hover { + background: rgb(163, 163, 163); + color: black; + } + #editor-modifiers .editor-modifiers-leaf { + padding-top: 10pt; + padding-bottom: 10pt; + } + #preview { + margin-left: 20pt; + } + img { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.15), 0 6px 20px 0 rgba(0, 0, 0, 0.15); + } + .line-separator { + background: rgb(56, 56, 56); + height: 1pt; + margin: 15pt 0; + } + #editor-inputs-tags-container { + margin-top: 5pt; + display: none; + } + #server-status { + float: right; + } + #server-status-color { + width: 10pt; + height: 10pt; + border-radius: 5pt; + background-color: rgb(128, 87, 0); + /* background-color: rgb(197, 1, 1); */ + float: left; + transform: translateY(15%); + } + #server-status-msg { + color: rgb(128, 87, 0); + padding-left: 2pt; + } + #preview-prompt { + font-size: 16pt; + margin-bottom: 10pt; + } -
Server status: checking.. | Request status: n/a
+
+
+
+
+
+
 
+ server starting.. +
+

Stable Diffusion UI v1

+
+
+
+ + +
-
+
+
+
+ + +
- Prompt:
-
+
+
+
+ + +
+
+
-
-
- - -

+
+ +
+
+
-
-
-
- - + +
+ +
 
+ +
+

Advanced Settings

+
    +
  • +
  • +
  • +
  • +
  • +
  • +

  • +
  •  
  • +
  • +
+
+ +
+

Image Modifiers (art styles, tags etc)

+
+
+
+
+ +
+
Type a prompt and press the "Make Image" button.

You can also add modifiers like "Realistic", "Pencil Sketch", "ArtStation" etc by browsing through the "Image Modifiers" section and selecting the desired modifiers.

Click "Advanced Settings" for additional settings like seed, image size, number of images to generate etc.

Enjoy! :)
+ +
+
+
-
Advanced settings: [show]
-
-
-
-
-
-
-
-

-
-
+
 
-

- -
- -
- - + diff --git a/main.py b/main.py index 7b29ce1c..5d65b488 100644 --- a/main.py +++ b/main.py @@ -67,3 +67,7 @@ async def image(req : ImageRequest): @app.get('/media/ding.mp3') def read_root(): return FileResponse('media/ding.mp3') + +@app.get('/modifiers.json') +def read_modifiers(): + return FileResponse('modifiers.json') diff --git a/modifiers.json b/modifiers.json new file mode 100644 index 00000000..692de138 --- /dev/null +++ b/modifiers.json @@ -0,0 +1,92 @@ +[ + ["Drawing Style", [ + "Sketch", + "Doodle", + "Children's Drawing", + "Line Art", + "Dot Art", + "Crosshatch", + "Detailed and Intricate", + "Cel Shading" + ]], + ["Visual Style", [ + "2D", + "Cartoon", + "8-bit", + "16-bit", + "Graphic Novel", + "Visual Novel", + "Street Art", + "Fantasy", + "Realistic", + "Photo", + "Hard Edge Painting", + "Mural", + "Mosaic", + "Hydrodipped", + "Modern Art", + "Concept Art", + "Digital Art", + "CGI", + "Anaglyph", + "Comic Book", + "Lithography" + ]], + ["Pen", [ + "Graphite", + "Colored Pencil", + "Ink", + "Chalk", + "Pastel Art", + "Oil Paint" + ]], + ["Carving and Etching", [ + "Etching", + "Wood-Carving", + "Papercutting", + "Paper-Mache", + "Paper Model", + "Linocut", + "Pyrography" + ]], + ["Camera", [ + "HD", + "Color Grading", + "Film Grain", + "White Balance", + "Golden Hour", + "Glamor Shot", + "War Photography", + "Lens Flare", + "Polaroid", + "Vintage" + ]], + ["Color", [ + "Colorful", + "Electric Colors", + "Warm Color Palette", + "Infrared", + "Beautiful Lighting" + ]], + ["Emotions", [ + "Happy", + "Excited", + "Sad", + "Lonely", + "Angry", + "Good", + "Evil" + ]], + ["Style of an artist or community", [ + "by Andy Warhol", + "Artstation", + "by Asaf Hanuka", + "by Aubrey Beardsley", + "by H.R. Giger", + "by Hayao Mizaki", + "by Salvador Dali", + "by Tivadar Csontváry Kosztka", + "by Lisa Frank", + "by Pablo Piccaso" + ]] +] \ No newline at end of file