joyson commited on
Commit
cd3ecdf
Β·
verified Β·
1 Parent(s): d5ca99f

Update text_to_image.py

Browse files
Files changed (1) hide show
  1. 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.