Spaces:
Starting
on
A100
Starting
on
A100
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
|