Yaron Koresh commited on
Commit
95f0424
·
verified ·
1 Parent(s): 2daa864

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -94,12 +94,12 @@ def infer(prompt1,prompt2,prompt3,prompt4):
94
  prompt3 = " and ".join([translate(v,"english").upper() for v in prompt3])
95
 
96
  if prompt4 == None:
97
- prompt4 = "none"
98
  else:
99
- prompt4 = " 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 {prompt4}...'
103
  print(_do)
104
  print(_dont)
105
  image = Piper(_do, _dont).images[0].save(name)
 
94
  prompt3 = " and ".join([translate(v,"english").upper() for v in prompt3])
95
 
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)