diff --git a/backend/server.py b/backend/server.py index db53ae45e5..8dbbc65cb1 100644 --- a/backend/server.py +++ b/backend/server.py @@ -19,8 +19,7 @@ from uuid import uuid4 from ldm.gfpgan.gfpgan_tools import real_esrgan_upscale from ldm.gfpgan.gfpgan_tools import run_gfpgan from ldm.generate import Generate -from ldm.dream.pngwriter import PngWriter, PromptFormatter - +from ldm.dream.pngwriter import PngWriter from modules.parameters import parameters_to_command, create_cmd_parser @@ -29,10 +28,11 @@ USER CONFIG """ output_dir = "outputs/" # Base output directory for images -host = 'localhost' # Web & socket.io host +#host = 'localhost' # Web & socket.io host +host = '0.0.0.0' # Web & socket.io host port = 9090 # Web & socket.io port verbose = False # enables copious socket.io logging -additional_allowed_origins = ['http://localhost:5173'] # additional CORS allowed origins +additional_allowed_origins = ['http://localhost:9090'] # additional CORS allowed origins """ diff --git a/environment.yaml b/environment.yaml index b0e2eb8090..6ca403e204 100644 --- a/environment.yaml +++ b/environment.yaml @@ -3,7 +3,7 @@ channels: - pytorch - defaults dependencies: - - python=3.8.5 + - python>=3.9 - pip=20.3 - cudatoolkit=11.3 - pytorch=1.11.0 @@ -20,7 +20,7 @@ dependencies: - realesrgan==0.2.5.0 - test-tube>=0.7.5 - streamlit==1.12.0 - - pillow==9.2.0 + - pillow==6.2.0 - einops==0.3.0 - torch-fidelity==0.3.0 - transformers==4.19.2