Spaces:
Runtime error
Runtime error
Man-isH-07
commited on
Commit
·
965759d
1
Parent(s):
77a69bb
v1.4
Browse files- Dockerfile +4 -0
- app.py +9 -2
Dockerfile
CHANGED
@@ -4,6 +4,10 @@ FROM python:3.10
|
|
4 |
# Install git
|
5 |
RUN apt-get update && apt-get install -y git
|
6 |
|
|
|
|
|
|
|
|
|
7 |
# Copy all files to the container
|
8 |
COPY . .
|
9 |
|
|
|
4 |
# Install git
|
5 |
RUN apt-get update && apt-get install -y git
|
6 |
|
7 |
+
|
8 |
+
WORKDIR /home/user/app
|
9 |
+
|
10 |
+
|
11 |
# Copy all files to the container
|
12 |
COPY . .
|
13 |
|
app.py
CHANGED
@@ -127,9 +127,16 @@ def add_comfyui_directory_to_sys_path() -> None:
|
|
127 |
# add_extra_model_paths()
|
128 |
|
129 |
print("Model paths added")
|
130 |
-
|
|
|
|
|
|
|
|
|
131 |
print("Current working directory:", os.getcwd())
|
132 |
print("Current directory contents:", os.listdir('.'))
|
|
|
|
|
|
|
133 |
print("Parent directory contents:", os.listdir('..') if os.path.exists('..') else "No parent directory")
|
134 |
print("sys.path:", sys.path)
|
135 |
print("Utils directory contents:", os.listdir('utils') if os.path.exists('utils') else "utils not found")
|
@@ -147,7 +154,7 @@ try:
|
|
147 |
print("utils.json_util available:", hasattr(utils, 'json_util'))
|
148 |
except ImportError as e:
|
149 |
print("Failed to import utils:", e)
|
150 |
-
|
151 |
def import_custom_nodes() -> None:
|
152 |
"""Find all custom nodes in the custom_nodes folder and add those node objects to NODE_CLASS_MAPPINGS
|
153 |
|
|
|
127 |
# add_extra_model_paths()
|
128 |
|
129 |
print("Model paths added")
|
130 |
+
|
131 |
+
import utils
|
132 |
+
print("utils package imported:", utils)
|
133 |
+
print("utils.__path__:", utils.__path__)
|
134 |
+
|
135 |
print("Current working directory:", os.getcwd())
|
136 |
print("Current directory contents:", os.listdir('.'))
|
137 |
+
|
138 |
+
|
139 |
+
import sys
|
140 |
print("Parent directory contents:", os.listdir('..') if os.path.exists('..') else "No parent directory")
|
141 |
print("sys.path:", sys.path)
|
142 |
print("Utils directory contents:", os.listdir('utils') if os.path.exists('utils') else "utils not found")
|
|
|
154 |
print("utils.json_util available:", hasattr(utils, 'json_util'))
|
155 |
except ImportError as e:
|
156 |
print("Failed to import utils:", e)
|
157 |
+
|
158 |
def import_custom_nodes() -> None:
|
159 |
"""Find all custom nodes in the custom_nodes folder and add those node objects to NODE_CLASS_MAPPINGS
|
160 |
|