Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,6 +10,7 @@ import time
|
|
| 10 |
from huggingface_hub import hf_hub_download
|
| 11 |
from diffusers import FluxTransformer2DModel, FluxPipeline
|
| 12 |
import safetensors.torch
|
|
|
|
| 13 |
import gc
|
| 14 |
|
| 15 |
cache_path = path.join(path.dirname(path.abspath(__file__)), "models")
|
|
|
|
| 10 |
from huggingface_hub import hf_hub_download
|
| 11 |
from diffusers import FluxTransformer2DModel, FluxPipeline
|
| 12 |
import safetensors.torch
|
| 13 |
+
from safetensors.torch import load_file
|
| 14 |
import gc
|
| 15 |
|
| 16 |
cache_path = path.join(path.dirname(path.abspath(__file__)), "models")
|