mobenta commited on
Commit
8cc24d6
·
verified ·
1 Parent(s): 7a9de80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -6,11 +6,13 @@ import numpy as np
6
  from PIL import Image
7
  import gradio as gr
8
 
9
- # Add the repository path to sys.path
10
  repo_path = './ComfyUI/totoro_extras'
 
 
11
  sys.path.append(repo_path)
12
 
13
- # Import nodes and custom modules after ensuring the path is set
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