linoyts HF Staff commited on
Commit
b11a041
·
verified ·
1 Parent(s): c767ecd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def infer(input_image, prompt, seed=42, randomize_seed=False, guidance_scale=2.5
22
  seed = random.randint(0, MAX_SEED)
23
 
24
  input_image = input_image.convert("RGB")
25
- prompt_with_template = f"Change the lighting conditions in this image to {prompt}. Modify or replace the background as needed to create an environment that naturally produces these lighting conditions, while maintaining the foreground subject. Lighting determines how bright or dark different parts of the image appear, where shadows fall, and how colors look. When you relight an image, you're simulating what the photo would look like if it were taken under different lighting conditions with an appropriate background setting."
26
 
27
  image = pipe(
28
  image=input_image,
 
22
  seed = random.randint(0, MAX_SEED)
23
 
24
  input_image = input_image.convert("RGB")
25
+ prompt_with_template = f"Change the lighting conditions in this image and add {prompt}. change the background details but maintain the forground. Lighting determines how bright or dark different parts of the image appear, where shadows fall, and how colors look. When you relight an image, you're simulating what the photo would look like if it were taken under different lighting conditions."
26
 
27
  image = pipe(
28
  image=input_image,