Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -19,6 +19,9 @@ from safetensors.torch import load_file
|
|
19 |
from pipeline import FluxWithCFGPipeline
|
20 |
from transformers import CLIPModel, CLIPProcessor, CLIPConfig
|
21 |
import gc
|
|
|
|
|
|
|
22 |
|
23 |
cache_path = path.join(path.dirname(path.abspath(__file__)), "models")
|
24 |
os.environ["TRANSFORMERS_CACHE"] = cache_path
|
|
|
19 |
from pipeline import FluxWithCFGPipeline
|
20 |
from transformers import CLIPModel, CLIPProcessor, CLIPConfig
|
21 |
import gc
|
22 |
+
import warnings
|
23 |
+
|
24 |
+
warnings.filterwarnings("ignore", category=FutureWarning)
|
25 |
|
26 |
cache_path = path.join(path.dirname(path.abspath(__file__)), "models")
|
27 |
os.environ["TRANSFORMERS_CACHE"] = cache_path
|