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