Commit
•
9b89d50
1
Parent(s):
2178ae1
Update app.py
Browse files
app.py
CHANGED
@@ -7,13 +7,13 @@ import gradio as gr
|
|
7 |
from PIL import Image
|
8 |
from huggingface_hub import hf_hub_download
|
9 |
|
10 |
-
hf_hub_download(repo_id="black-forest-labs/FLUX.1-Redux-dev", filename="flux1-redux-dev.safetensors",
|
11 |
-
hf_hub_download(repo_id="black-forest-labs/FLUX.1-Depth-dev", filename="flux1-depth-dev.safetensors",
|
12 |
-
hf_hub_download(repo_id="Comfy-Org/sigclip_vision_384", filename="sigclip_vision_patch14_384.safetensors",
|
13 |
-
hf_hub_download(repo_id="Kijai/DepthAnythingV2-safetensors", filename="depth_anything_v2_vitl_fp32.safetensors",
|
14 |
-
hf_hub_download(repo_id="black-forest-labs/FLUX.1-dev", filename="ae.safetensors",
|
15 |
-
hf_hub_download(repo_id="comfyanonymous/flux_text_encoders", filename="clip_l.safetensors",
|
16 |
-
t5_path = hf_hub_download(repo_id="comfyanonymous/flux_text_encoders", filename="t5xxl_fp16.safetensors",
|
17 |
print(t5_path)
|
18 |
# Import all the necessary functions from the original script
|
19 |
def get_value_at_index(obj: Union[Sequence, Mapping], index: int) -> Any:
|
|
|
7 |
from PIL import Image
|
8 |
from huggingface_hub import hf_hub_download
|
9 |
|
10 |
+
hf_hub_download(repo_id="black-forest-labs/FLUX.1-Redux-dev", filename="flux1-redux-dev.safetensors", local_dir="models/style_models")
|
11 |
+
hf_hub_download(repo_id="black-forest-labs/FLUX.1-Depth-dev", filename="flux1-depth-dev.safetensors", local_dir="models/diffusion_models")
|
12 |
+
hf_hub_download(repo_id="Comfy-Org/sigclip_vision_384", filename="sigclip_vision_patch14_384.safetensors", local_dir="models/clip_vision")
|
13 |
+
hf_hub_download(repo_id="Kijai/DepthAnythingV2-safetensors", filename="depth_anything_v2_vitl_fp32.safetensors", local_dir="models/depthanything")
|
14 |
+
hf_hub_download(repo_id="black-forest-labs/FLUX.1-dev", filename="ae.safetensors", local_dir="models/vae/FLUX1")
|
15 |
+
hf_hub_download(repo_id="comfyanonymous/flux_text_encoders", filename="clip_l.safetensors", local_dir="models/text_encoders")
|
16 |
+
t5_path = hf_hub_download(repo_id="comfyanonymous/flux_text_encoders", filename="t5xxl_fp16.safetensors", local_dir="models/text_encoders/t5")
|
17 |
print(t5_path)
|
18 |
# Import all the necessary functions from the original script
|
19 |
def get_value_at_index(obj: Union[Sequence, Mapping], index: int) -> Any:
|