alfredplpl commited on
Commit
94d1cb1
1 Parent(s): 29c1fa4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -26,8 +26,7 @@ tokenizer = AutoTokenizer.from_pretrained(model_id)
26
  MAX_SEED = np.iinfo(np.int32).max
27
  MAX_IMAGE_SIZE = 1344
28
 
29
- @spaces.GPU
30
- def infer(prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps, progress=gr.Progress(track_tqdm=True)):
31
  print("start inference...")
32
  if randomize_seed:
33
  seed = random.randint(0, MAX_SEED)
@@ -54,6 +53,9 @@ def infer(prompt, negative_prompt, seed, randomize_seed, width, height, guidance
54
  print(tokenizer.decode(output))
55
  upsampled_prompt=tokenizer.decode(output)
56
 
 
 
 
57
  print(upsampled_prompt)
58
 
59
  image = t2i(
 
26
  MAX_SEED = np.iinfo(np.int32).max
27
  MAX_IMAGE_SIZE = 1344
28
 
29
+ if(0):
 
30
  print("start inference...")
31
  if randomize_seed:
32
  seed = random.randint(0, MAX_SEED)
 
53
  print(tokenizer.decode(output))
54
  upsampled_prompt=tokenizer.decode(output)
55
 
56
+ @spaces.GPU
57
+ def infer(prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps, progress=gr.Progress(track_tqdm=True)):
58
+ upsampled_prompt="An anime style illustration of a cool-looking teenage girl with an edgy, confident expression. She has piercing eyes, a slight smirk, and colorful hair that flows in the wind. She wears a trendy punk-inspired outfit with a leather jacket, ripped jeans, and combat boots. The background has an urban nighttime feel with city lights and graffiti to match her rebellious vibe. The colors are vibrant with high contrast to give an impactful look. The overall style captures her undeniable coolness and fearless attitude."
59
  print(upsampled_prompt)
60
 
61
  image = t2i(