Nahrawy commited on
Commit
8d1c7e2
1 Parent(s): 02b3506

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -58,12 +58,14 @@ def infer(prompts, negative_prompts, image):
58
  return output_images
59
 
60
  e_images = ['0.png',
61
- '1.png'
62
  '2.png']
63
  e_prompts = ['a dog in the middle of the road, shadow on the ground,light direction north-east',
64
  'a skyscraper in the middle of an intersection, shadow on the ground, light direction east',
65
  'a red rural house, light temperature 5500, shadow on the ground, light direction south-west']
66
- e_negative_prompts = ['monochromatic, unrealistic, bad looking, full of glitches'*3]
 
 
67
  examples = []
68
  for image, prompt, negative_prompt in zip(e_images, e_prompts, e_negative_prompts):
69
  examples.append([prompt, negative_prompt, image])
@@ -79,6 +81,7 @@ with gr.Blocks() as demo:
79
  out_image = gr.Gallery(label="Generated Image")
80
  with gr.Row():
81
  btn = gr.Button("Run")
 
82
  gr.Examples(examples=examples,
83
  inputs=[prompts,negative_prompts, in_image],
84
  outputs=out_image,
 
58
  return output_images
59
 
60
  e_images = ['0.png',
61
+ '1.png',
62
  '2.png']
63
  e_prompts = ['a dog in the middle of the road, shadow on the ground,light direction north-east',
64
  'a skyscraper in the middle of an intersection, shadow on the ground, light direction east',
65
  'a red rural house, light temperature 5500, shadow on the ground, light direction south-west']
66
+ e_negative_prompts = ['monochromatic, unrealistic, bad looking, full of glitches',
67
+ 'monochromatic, unrealistic, bad looking, full of glitches',
68
+ 'monochromatic, unrealistic, bad looking, full of glitches']
69
  examples = []
70
  for image, prompt, negative_prompt in zip(e_images, e_prompts, e_negative_prompts):
71
  examples.append([prompt, negative_prompt, image])
 
81
  out_image = gr.Gallery(label="Generated Image")
82
  with gr.Row():
83
  btn = gr.Button("Run")
84
+ with gr.Row()
85
  gr.Examples(examples=examples,
86
  inputs=[prompts,negative_prompts, in_image],
87
  outputs=out_image,