Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -86,7 +86,7 @@ def Piper(_do):
|
|
86 |
width=512,
|
87 |
num_inference_steps=40,
|
88 |
max_sequence_length=256,
|
89 |
-
guidance_scale=
|
90 |
)
|
91 |
return retu
|
92 |
except:
|
@@ -94,11 +94,11 @@ def Piper(_do):
|
|
94 |
|
95 |
def infer(p1,p2):
|
96 |
name = generate_random_string(12)+".png"
|
97 |
-
_do = ['beautiful', 'playful', 'photographed', '
|
98 |
-
if p1 != "":
|
99 |
-
_do.append(f'showing {p1 }clearly')
|
100 |
if p2 != "":
|
101 |
-
_do.append(f'
|
|
|
|
|
102 |
output = Piper('A '+" ".join(_do))
|
103 |
if output == "":
|
104 |
return output
|
|
|
86 |
width=512,
|
87 |
num_inference_steps=40,
|
88 |
max_sequence_length=256,
|
89 |
+
guidance_scale=0
|
90 |
)
|
91 |
return retu
|
92 |
except:
|
|
|
94 |
|
95 |
def infer(p1,p2):
|
96 |
name = generate_random_string(12)+".png"
|
97 |
+
_do = ['beautiful', 'playful', 'photographed', 'realistic', 'dynamic poze', 'deep field', 'reasonable coloring', 'rough texture', 'best quality', 'focused']
|
|
|
|
|
98 |
if p2 != "":
|
99 |
+
_do.append(f'invisible transparent {p2} in')
|
100 |
+
if p1 != "":
|
101 |
+
_do.append(f'{p1}')
|
102 |
output = Piper('A '+" ".join(_do))
|
103 |
if output == "":
|
104 |
return output
|