moved index.js .html and .css files into static/dream_web/; changed batch to iterations again

This commit is contained in:
Lincoln Stein 2022-08-25 15:27:43 -04:00
parent 6d2b4cbda1
commit 2114c386ad
4 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@ class DreamServer(BaseHTTPRequestHandler):
self.send_response(200)
self.send_header("Content-type", "text/html")
self.end_headers()
with open("./static/index.html", "rb") as content:
with open("./static/dream_web/index.html", "rb") as content:
self.wfile.write(content.read())
elif os.path.exists("." + self.path):
mime_type = mimetypes.guess_type(self.path)[0]

View File

@ -4,8 +4,8 @@
<link rel="icon" href="data:,">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="scripts/static/index.css">
<script src="scripts/static/index.js"></script>
<link rel="stylesheet" href="static/dream_web/index.css">
<script src="static/dream_web/index.js"></script>
</head>
<body>
<div id="search">
@ -18,7 +18,7 @@
</fieldset>
<fieldset id="fieldset-config">
<label for="iterations">Images to generate:</label>
<input value="1" type="number" id="batch" name="batch">
<input value="1" type="number" id="iterations" name="iterations">
<label for="steps">Steps:</label>
<input value="50" type="number" id="steps" name="steps">
<label for="cfgscale">Cfg Scale:</label>