KingNish commited on
Commit
eed0b3d
1 Parent(s): aece66e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -8
app.py CHANGED
@@ -5,6 +5,7 @@ from diffusers import AuraFlowPipeline
5
  import torch
6
  import spaces
7
  import uuid
 
8
  import os
9
 
10
  device = "cuda" if torch.cuda.is_available() else "cpu"
@@ -55,13 +56,13 @@ def infer(prompt, negative_prompt="", seed=42, randomize_seed=False, width=1024,
55
  return image_paths, seed
56
 
57
  examples = [
58
- "A photo of a lavender cat",
 
 
 
59
  "Astronaut in a jungle grasping a sign board contain word 'I love SPACE', cold color palette, muted colors, detailed, futuristic",
60
- "a cat eating a piece of cheese",
61
  "a ROBOT riding a BLUE horse on Mars, photorealistic",
62
- "a cute robot artist painting on an easel, concept art",
63
- "An alien grasping a sign board contain word 'AuraFlow', futuristic, neonpunk, detailed",
64
- "Kids going to school, sketch"
65
  ]
66
 
67
 
@@ -104,10 +105,8 @@ with gr.Blocks(css=css) as demo:
104
 
105
  negative_prompt = gr.Text(
106
  label="Negative prompt",
107
- max_lines=5,
108
- lines=4,
109
  placeholder="Enter a negative prompt",
110
- value="(deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, NSFW",
111
  )
112
 
113
  seed = gr.Slider(
 
5
  import torch
6
  import spaces
7
  import uuid
8
+ import random
9
  import os
10
 
11
  device = "cuda" if torch.cuda.is_available() else "cpu"
 
56
  return image_paths, seed
57
 
58
  examples = [
59
+ "An alien grasping a sign board contain word 'AuraFlow', futuristic, neonpunk, detailed",
60
+ "a cute robot artist painting on an easel, concept art, light colors, cute",
61
+ 'A vibrant street wall covered in colorful graffiti, the centerpiece spells "FIRE", in a storm of colors',
62
+ 'Digital art, portrait of an anthropomorphic roaring Tiger warrior with full armor, close up in the middle of a battle, behind him there is a banner with the text "Open Source"'
63
  "Astronaut in a jungle grasping a sign board contain word 'I love SPACE', cold color palette, muted colors, detailed, futuristic",
64
+ "A delicious ceviche cheesecake slice",
65
  "a ROBOT riding a BLUE horse on Mars, photorealistic",
 
 
 
66
  ]
67
 
68
 
 
105
 
106
  negative_prompt = gr.Text(
107
  label="Negative prompt",
108
+ lines=1,
 
109
  placeholder="Enter a negative prompt",
 
110
  )
111
 
112
  seed = gr.Slider(