AlekseyCalvin commited on
Commit
3f59028
·
verified ·
1 Parent(s): cfa8e60

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -5
app.py CHANGED
@@ -92,11 +92,6 @@ def update_selection(evt: gr.SelectData, width, height):
92
 
93
  @spaces.GPU(duration=70)
94
 
95
- # Just to look at the tokens / confirm settings:
96
- tokens = clip_processor(
97
- [prompt], padding="max_length", max_length=maxtokens, return_tensors="pt", truncation=True
98
- )
99
-
100
  def generate_image(prompt, trigger_word, steps, seed, cfg_scale, width, height, lora_scale, progress):
101
  pipe.to("cuda")
102
  generator = torch.Generator(device="cuda").manual_seed(seed)
 
92
 
93
  @spaces.GPU(duration=70)
94
 
 
 
 
 
 
95
  def generate_image(prompt, trigger_word, steps, seed, cfg_scale, width, height, lora_scale, progress):
96
  pipe.to("cuda")
97
  generator = torch.Generator(device="cuda").manual_seed(seed)