Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,6 +8,13 @@ import gradio as gr
|
|
| 8 |
from huggingface_hub import hf_hub_download
|
| 9 |
import spaces
|
| 10 |
from typing import Union, Sequence, Mapping, Any
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
import folder_paths
|
| 12 |
|
| 13 |
# Configura莽茫o inicial e diagn贸stico CUDA
|
|
|
|
| 8 |
from huggingface_hub import hf_hub_download
|
| 9 |
import spaces
|
| 10 |
from typing import Union, Sequence, Mapping, Any
|
| 11 |
+
|
| 12 |
+
# Adicionar o caminho da pasta ComfyUI ao sys.path primeiro
|
| 13 |
+
current_dir = os.path.dirname(os.path.abspath(__file__))
|
| 14 |
+
comfyui_path = os.path.join(current_dir, "ComfyUI")
|
| 15 |
+
sys.path.append(comfyui_path)
|
| 16 |
+
|
| 17 |
+
# Agora podemos importar os m贸dulos do ComfyUI
|
| 18 |
import folder_paths
|
| 19 |
|
| 20 |
# Configura莽茫o inicial e diagn贸stico CUDA
|