Yaron Koresh commited on
Commit
3a80c0d
·
verified ·
1 Parent(s): 95f0424

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -69,8 +69,8 @@ def generate_random_string(length):
69
  def Piper(_do, _dont):
70
  return pipe(
71
  _do,
72
- height=480,
73
- width=480,
74
  negative_prompt=_dont,
75
  num_inference_steps=400,
76
  guidance_scale=10
@@ -96,10 +96,10 @@ def infer(prompt1,prompt2,prompt3,prompt4):
96
  if prompt4 == None:
97
  prompt4 = ""
98
  else:
99
- prompt4 = "and " + " and ".join([translate(v,"english").upper() for v in prompt4])
100
 
101
  _do = f'Show an authentic {prompt3} scene, while focusing on the details, of {prompt1}, as the main elements, and, showing {prompt2} in the background.'
102
- _dont = f'ANY usage of LABELS and BRANDS and TRADEMARKS {prompt4}...'
103
  print(_do)
104
  print(_dont)
105
  image = Piper(_do, _dont).images[0].save(name)
 
69
  def Piper(_do, _dont):
70
  return pipe(
71
  _do,
72
+ height=512,
73
+ width=512,
74
  negative_prompt=_dont,
75
  num_inference_steps=400,
76
  guidance_scale=10
 
96
  if prompt4 == None:
97
  prompt4 = ""
98
  else:
99
+ prompt4 = " and " + " and ".join([translate(v,"english").upper() for v in prompt4])
100
 
101
  _do = f'Show an authentic {prompt3} scene, while focusing on the details, of {prompt1}, as the main elements, and, showing {prompt2} in the background.'
102
+ _dont = f'ANY usage of TEXT and LABEL and LOGO{prompt4}...'
103
  print(_do)
104
  print(_dont)
105
  image = Piper(_do, _dont).images[0].save(name)