Spaces:
Running
on
Zero
Running
on
Zero
AlekseyCalvin
commited on
Update app.py
Browse files
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)
|