Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -96,10 +96,10 @@ def infer(prompt1,prompt2,prompt3,prompt4):
|
|
96 |
if prompt4 == None:
|
97 |
prompt4 = ""
|
98 |
else:
|
99 |
-
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'
|
103 |
print(_do)
|
104 |
print(_dont)
|
105 |
image = Piper(_do, _dont).images[0].save(name)
|
|
|
96 |
if prompt4 == None:
|
97 |
prompt4 = ""
|
98 |
else:
|
99 |
+
prompt4 = ", " + ", ".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'TEXT, LABEL, LOGO{prompt4}...'
|
103 |
print(_do)
|
104 |
print(_dont)
|
105 |
image = Piper(_do, _dont).images[0].save(name)
|