mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Normalize working directory
This commit is contained in:
parent
d3a802db69
commit
2ad73246f9
@ -81,6 +81,12 @@ class DreamServer(BaseHTTPRequestHandler):
|
||||
self.wfile.write(bytes(json.dumps(result), "utf-8"))
|
||||
|
||||
if __name__ == "__main__":
|
||||
# Change working directory to the stable-diffusion directory
|
||||
os.chdir(
|
||||
os.path.abspath(os.path.join(os.path.dirname( __file__ ), '..'))
|
||||
)
|
||||
|
||||
# Start server
|
||||
dream_server = ThreadingHTTPServer(("0.0.0.0", 9090), DreamServer)
|
||||
print("Started Stable Diffusion dream server!")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user