Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,11 @@
|
|
1 |
import os
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
import random
|
3 |
import torch
|
4 |
from pathlib import Path
|
|
|
1 |
import os
|
2 |
+
import sys
|
3 |
+
|
4 |
+
# Adicionar o caminho da pasta ComfyUI ao sys.path
|
5 |
+
current_dir = os.path.dirname(os.path.abspath(__file__))
|
6 |
+
comfyui_path = os.path.join(current_dir, "ComfyUI")
|
7 |
+
sys.path.append(comfyui_path)
|
8 |
+
|
9 |
import random
|
10 |
import torch
|
11 |
from pathlib import Path
|