Nymbo commited on
Commit
abbc268
1 Parent(s): 3078499

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,7 +3,7 @@ import json
3
  import logging
4
  import torch
5
  from PIL import Image
6
- import spaces
7
  from diffusers import DiffusionPipeline
8
  import copy
9
  import random
@@ -56,7 +56,7 @@ def update_selection(evt: gr.SelectData, width, height):
56
  height,
57
  )
58
 
59
- @spaces.GPU(duration=70)
60
  def generate_image(prompt, trigger_word, steps, seed, cfg_scale, width, height, lora_scale, progress):
61
  pipe.to("cuda")
62
  generator = torch.Generator(device="cuda").manual_seed(seed)
 
3
  import logging
4
  import torch
5
  from PIL import Image
6
+ # import spaces
7
  from diffusers import DiffusionPipeline
8
  import copy
9
  import random
 
56
  height,
57
  )
58
 
59
+ # @spaces.GPU(duration=70)
60
  def generate_image(prompt, trigger_word, steps, seed, cfg_scale, width, height, lora_scale, progress):
61
  pipe.to("cuda")
62
  generator = torch.Generator(device="cuda").manual_seed(seed)