+
+ +
diff --git a/invokeai/app/api_app.py b/invokeai/app/api_app.py index 238fb0180b..7bc38dc2dc 100644 --- a/invokeai/app/api_app.py +++ b/invokeai/app/api_app.py @@ -1,5 +1,4 @@ # Copyright (c) 2022 Kyle Schouviller (https://github.com/kyle0654) - import asyncio from inspect import signature diff --git a/static/dream_web/favicon.ico b/static/dream_web/favicon.ico new file mode 100644 index 0000000000..51eb844a6a Binary files /dev/null and b/static/dream_web/favicon.ico differ diff --git a/static/dream_web/index.css b/static/dream_web/index.css new file mode 100644 index 0000000000..25a0994a3d --- /dev/null +++ b/static/dream_web/index.css @@ -0,0 +1,179 @@ +:root { + --fields-dark:#DCDCDC; + --fields-light:#F5F5F5; +} + +* { + font-family: 'Arial'; + font-size: 100%; +} +body { + font-size: 1em; +} +textarea { + font-size: 0.95em; +} +header, form, #progress-section { + margin-left: auto; + margin-right: auto; + max-width: 1024px; + text-align: center; +} +fieldset { + border: none; + line-height: 2.2em; +} +fieldset > legend { + width: auto; + margin-left: 0; + margin-right: auto; + font-weight:bold; +} +select, input { + margin-right: 10px; + padding: 2px; +} +input:disabled { + cursor:auto; +} +input[type=submit] { + cursor: pointer; + background-color: #666; + color: white; +} +input[type=checkbox] { + cursor: pointer; + margin-right: 0px; + width: 20px; + height: 20px; + vertical-align: middle; +} +input#seed { + margin-right: 0px; +} +div { + padding: 10px 10px 10px 10px; +} +header { + margin-bottom: 16px; +} +header h1 { + margin-bottom: 0; + font-size: 2em; +} +#search-box { + display: flex; +} +#scaling-inprocess-message { + font-weight: bold; + font-style: italic; + display: none; +} +#prompt { + flex-grow: 1; + padding: 5px 10px 5px 10px; + border: 1px solid #999; + outline: none; +} +#submit { + padding: 5px 10px 5px 10px; + border: 1px solid #999; +} +#reset-all, #remove-image { + margin-top: 12px; + font-size: 0.8em; + background-color: pink; + border: 1px solid #999; + border-radius: 4px; +} +#results { + text-align: center; + margin: auto; + padding-top: 10px; +} +#results figure { + display: inline-block; + margin: 10px; +} +#results figcaption { + font-size: 0.8em; + padding: 3px; + color: #888; + cursor: pointer; +} +#results img { + border-radius: 5px; + object-fit: contain; + background-color: var(--fields-dark); +} +#fieldset-config { + line-height:2em; +} +input[type="number"] { + width: 60px; +} +#seed { + width: 150px; +} +button#reset-seed { + font-size: 1.7em; + background: #efefef; + border: 1px solid #999; + border-radius: 4px; + line-height: 0.8; + margin: 0 10px 0 0; + padding: 0 5px 3px; + vertical-align: middle; +} +label { + white-space: nowrap; +} +#progress-section { + display: none; +} +#progress-image { + width: 30vh; + height: 30vh; + object-fit: contain; + background-color: var(--fields-dark); +} +#cancel-button { + cursor: pointer; + color: red; +} +#txt2img { + background-color: var(--fields-dark); +} +#variations { + background-color: var(--fields-light); +} +#initimg { + background-color: var(--fields-dark); +} +#img2img { + background-color: var(--fields-light); +} +#initimg > :not(legend) { + background-color: var(--fields-light); + margin: .5em; +} + +#postprocess, #initimg { + display:flex; + flex-wrap:wrap; + padding: 0; + margin-top: 1em; + background-color: var(--fields-dark); +} +#postprocess > fieldset, #initimg > * { + flex-grow: 1; +} +#postprocess > fieldset { + background-color: var(--fields-dark); +} +#progress-section { + background-color: var(--fields-light); +} +#no-results-message:not(:only-child) { + display: none; +} diff --git a/static/dream_web/index.html b/static/dream_web/index.html new file mode 100644 index 0000000000..feb542adb2 --- /dev/null +++ b/static/dream_web/index.html @@ -0,0 +1,187 @@ + + +
+No results...
+