EmoCube commited on
Commit
c903313
·
verified ·
1 Parent(s): 9225510

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -134,8 +134,8 @@ def query(prompt, is_realistic, num_inference_steps, width, height, mod = None):
134
  image = resize_and_crop(image, width, height)
135
 
136
  if (is_realistic == True):
137
- image = add_noise(image, intensity = randint(25, 100) / 10)
138
- image = compress_image(image, randint(80, 90))
139
 
140
  enhancer = ImageEnhance.Contrast(image)
141
  image = enhancer.enhance(randint(75,80) / 100)
 
134
  image = resize_and_crop(image, width, height)
135
 
136
  if (is_realistic == True):
137
+ image = add_noise(image, intensity = randint(75, 150) / 10)
138
+ image = compress_image(image, randint(70, 80))
139
 
140
  enhancer = ImageEnhance.Contrast(image)
141
  image = enhancer.enhance(randint(75,80) / 100)