radames commited on
Commit
76336af
1 Parent(s): 87914c1

rearrange project structure

Browse files
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: '../public',
9
- assets: '../public',
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("/", StaticFiles(directory="public", html=True), name="public")
 
 
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