Spaces:
Runtime error
Runtime error
Update text_to_image.py
Browse files- text_to_image.py +0 -2
text_to_image.py
CHANGED
@@ -1,11 +1,9 @@
|
|
1 |
import torch
|
2 |
-
import spaces
|
3 |
from diffusers import StableDiffusionPipeline
|
4 |
from PIL import Image
|
5 |
from io import BytesIO
|
6 |
from utils import load_unet_model
|
7 |
|
8 |
-
@spaces.GPU
|
9 |
class TextToImage:
|
10 |
"""
|
11 |
Class to handle Text-to-Image generation using Stable Diffusion XL.
|
|
|
1 |
import torch
|
|
|
2 |
from diffusers import StableDiffusionPipeline
|
3 |
from PIL import Image
|
4 |
from io import BytesIO
|
5 |
from utils import load_unet_model
|
6 |
|
|
|
7 |
class TextToImage:
|
8 |
"""
|
9 |
Class to handle Text-to-Image generation using Stable Diffusion XL.
|