Spaces:
Sleeping
Sleeping
rearrange project structure
Browse files- build-run.sh +1 -1
- frontend/svelte.config.js +2 -2
- config.py → server/config.py +0 -0
- connection_manager.py → server/connection_manager.py +0 -0
- device.py → server/device.py +0 -0
- main.py → server/main.py +3 -1
- {pipelines → server/pipelines}/__init__.py +0 -0
- {pipelines → server/pipelines}/controlnet.py +0 -0
- {pipelines → server/pipelines}/controlnetLoraSD15.py +0 -0
- {pipelines → server/pipelines}/controlnetLoraSDXL.py +0 -0
- {pipelines → server/pipelines}/controlnetSDTurbo.py +0 -0
- {pipelines → server/pipelines}/controlnetSDXLTurbo.py +0 -0
- {pipelines → server/pipelines}/controlnetSegmindVegaRT.py +0 -0
- {pipelines → server/pipelines}/img2img.py +0 -0
- {pipelines → server/pipelines}/img2imgSDTurbo.py +0 -0
- {pipelines → server/pipelines}/img2imgSDXLTurbo.py +0 -0
- {pipelines → server/pipelines}/img2imgSegmindVegaRT.py +0 -0
- {pipelines → server/pipelines}/txt2img.py +0 -0
- {pipelines → server/pipelines}/txt2imgLora.py +0 -0
- {pipelines → server/pipelines}/txt2imgLoraSDXL.py +0 -0
- {pipelines → server/pipelines}/utils/canny_gpu.py +0 -0
- util.py → server/util.py +0 -0
build-run.sh
CHANGED
@@ -17,4 +17,4 @@ if [ -z ${COMPILE+x} ]; then
|
|
17 |
fi
|
18 |
echo -e "\033[1;32m\npipeline: $PIPELINE \033[0m"
|
19 |
echo -e "\033[1;32m\ncompile: $COMPILE \033[0m"
|
20 |
-
python3 main.py --port 7860 --host 0.0.0.0 --pipeline $PIPELINE $COMPILE
|
|
|
17 |
fi
|
18 |
echo -e "\033[1;32m\npipeline: $PIPELINE \033[0m"
|
19 |
echo -e "\033[1;32m\ncompile: $COMPILE \033[0m"
|
20 |
+
python3 ./server/main.py --port 7860 --host 0.0.0.0 --pipeline $PIPELINE $COMPILE
|
frontend/svelte.config.js
CHANGED
@@ -5,8 +5,8 @@ const config = {
|
|
5 |
preprocess: vitePreprocess({ postcss: true }),
|
6 |
kit: {
|
7 |
adapter: adapter({
|
8 |
-
pages: '
|
9 |
-
assets: '
|
10 |
fallback: undefined,
|
11 |
precompress: false,
|
12 |
strict: true
|
|
|
5 |
preprocess: vitePreprocess({ postcss: true }),
|
6 |
kit: {
|
7 |
adapter: adapter({
|
8 |
+
pages: 'public',
|
9 |
+
assets: 'public',
|
10 |
fallback: undefined,
|
11 |
precompress: false,
|
12 |
strict: true
|
config.py → server/config.py
RENAMED
File without changes
|
connection_manager.py → server/connection_manager.py
RENAMED
File without changes
|
device.py → server/device.py
RENAMED
File without changes
|
main.py → server/main.py
RENAMED
@@ -155,7 +155,9 @@ class App:
|
|
155 |
if not os.path.exists("public"):
|
156 |
os.makedirs("public")
|
157 |
|
158 |
-
self.app.mount(
|
|
|
|
|
159 |
|
160 |
|
161 |
pipeline_class = get_pipeline_class(config.pipeline)
|
|
|
155 |
if not os.path.exists("public"):
|
156 |
os.makedirs("public")
|
157 |
|
158 |
+
self.app.mount(
|
159 |
+
"/", StaticFiles(directory="frontend/public", html=True), name="public"
|
160 |
+
)
|
161 |
|
162 |
|
163 |
pipeline_class = get_pipeline_class(config.pipeline)
|
{pipelines → server/pipelines}/__init__.py
RENAMED
File without changes
|
{pipelines → server/pipelines}/controlnet.py
RENAMED
File without changes
|
{pipelines → server/pipelines}/controlnetLoraSD15.py
RENAMED
File without changes
|
{pipelines → server/pipelines}/controlnetLoraSDXL.py
RENAMED
File without changes
|
{pipelines → server/pipelines}/controlnetSDTurbo.py
RENAMED
File without changes
|
{pipelines → server/pipelines}/controlnetSDXLTurbo.py
RENAMED
File without changes
|
{pipelines → server/pipelines}/controlnetSegmindVegaRT.py
RENAMED
File without changes
|
{pipelines → server/pipelines}/img2img.py
RENAMED
File without changes
|
{pipelines → server/pipelines}/img2imgSDTurbo.py
RENAMED
File without changes
|
{pipelines → server/pipelines}/img2imgSDXLTurbo.py
RENAMED
File without changes
|
{pipelines → server/pipelines}/img2imgSegmindVegaRT.py
RENAMED
File without changes
|
{pipelines → server/pipelines}/txt2img.py
RENAMED
File without changes
|
{pipelines → server/pipelines}/txt2imgLora.py
RENAMED
File without changes
|
{pipelines → server/pipelines}/txt2imgLoraSDXL.py
RENAMED
File without changes
|
{pipelines → server/pipelines}/utils/canny_gpu.py
RENAMED
File without changes
|
util.py → server/util.py
RENAMED
File without changes
|