Update app.py
Browse files
app.py
CHANGED
@@ -6,11 +6,13 @@ import numpy as np
|
|
6 |
from PIL import Image
|
7 |
import gradio as gr
|
8 |
|
9 |
-
#
|
10 |
repo_path = './ComfyUI/totoro_extras'
|
|
|
|
|
11 |
sys.path.append(repo_path)
|
12 |
|
13 |
-
# Import nodes and custom modules
|
14 |
from nodes import NODE_CLASS_MAPPINGS
|
15 |
from totoro_extras import nodes_custom_sampler, nodes_flux
|
16 |
|
|
|
6 |
from PIL import Image
|
7 |
import gradio as gr
|
8 |
|
9 |
+
# Ensure the ComfyUI repository path is added to sys.path
|
10 |
repo_path = './ComfyUI/totoro_extras'
|
11 |
+
if not os.path.exists(repo_path):
|
12 |
+
raise FileNotFoundError(f"Repository path '{repo_path}' not found. Make sure the ComfyUI repository is cloned correctly.")
|
13 |
sys.path.append(repo_path)
|
14 |
|
15 |
+
# Import nodes and custom modules
|
16 |
from nodes import NODE_CLASS_MAPPINGS
|
17 |
from totoro_extras import nodes_custom_sampler, nodes_flux
|
18 |
|