Spaces:
Sleeping
Sleeping
ekhatskevich
commited on
Commit
·
d033e91
1
Parent(s):
ab0b470
update env variables
Browse files
app.py
CHANGED
@@ -1,20 +1,13 @@
|
|
1 |
import os
|
2 |
import gradio as gr
|
3 |
-
import importlib
|
4 |
-
import sys
|
5 |
|
6 |
# Set necessary environment variables for ACE++
|
7 |
os.environ["FLUX_FILL_PATH"] = "hf://black-forest-labs/FLUX.1-Fill-dev"
|
8 |
os.environ["PORTRAIT_MODEL_PATH"] = "ms://iic/ACE_Plus@portrait/comfyui_portrait_lora64.safetensors"
|
9 |
os.environ["SUBJECT_MODEL_PATH"] = "ms://iic/ACE_Plus@subject/comfyui_subject_lora16.safetensors"
|
10 |
os.environ["LOCAL_MODEL_PATH"] = "ms://iic/ACE_Plus@local_editing/comfyui_local_lora16.safetensors"
|
11 |
-
|
12 |
-
|
13 |
-
package_name = 'scepter_ext'
|
14 |
-
spec = importlib.util.spec_from_file_location(package_name, '__init__.py')
|
15 |
-
package = importlib.util.module_from_spec(spec)
|
16 |
-
sys.modules[package_name] = package
|
17 |
-
spec.loader.exec_module(package)
|
18 |
|
19 |
# Import ACEInference and Config from the ACE_plus repo
|
20 |
from inference.ace_plus_inference import ACEInference
|
|
|
1 |
import os
|
2 |
import gradio as gr
|
|
|
|
|
3 |
|
4 |
# Set necessary environment variables for ACE++
|
5 |
os.environ["FLUX_FILL_PATH"] = "hf://black-forest-labs/FLUX.1-Fill-dev"
|
6 |
os.environ["PORTRAIT_MODEL_PATH"] = "ms://iic/ACE_Plus@portrait/comfyui_portrait_lora64.safetensors"
|
7 |
os.environ["SUBJECT_MODEL_PATH"] = "ms://iic/ACE_Plus@subject/comfyui_subject_lora16.safetensors"
|
8 |
os.environ["LOCAL_MODEL_PATH"] = "ms://iic/ACE_Plus@local_editing/comfyui_local_lora16.safetensors"
|
9 |
+
os.environ["ACE_PLUS_FFT_MODEL"] = "hf://ali-vilab/ACE_Plus@ace_plus_fft.safetensors"
|
10 |
+
os.environ["ACE_PLUS_FFT_MODEL"]=FS.get_from(os.environ["ACE_PLUS_FFT_MODEL"])
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
# Import ACEInference and Config from the ACE_plus repo
|
13 |
from inference.ace_plus_inference import ACEInference
|