Spaces:
Sleeping
Sleeping
Update core/image_generator.py
Browse files- core/image_generator.py +3 -0
core/image_generator.py
CHANGED
|
@@ -5,6 +5,9 @@ from diffusers import StableDiffusionXLPipeline
|
|
| 5 |
from huggingface_hub import hf_hub_download
|
| 6 |
from pathlib import Path
|
| 7 |
from typing import List
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
|
| 10 |
# ---------------- HF CACHE FIX ----------------
|
|
|
|
| 5 |
from huggingface_hub import hf_hub_download
|
| 6 |
from pathlib import Path
|
| 7 |
from typing import List
|
| 8 |
+
from io import BytesIO
|
| 9 |
+
import base64
|
| 10 |
+
from PIL import Image
|
| 11 |
|
| 12 |
|
| 13 |
# ---------------- HF CACHE FIX ----------------
|