Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -84,9 +84,9 @@ def Piper(_do):
|
|
84 |
_do,
|
85 |
height=480,
|
86 |
width=480,
|
87 |
-
num_inference_steps=
|
88 |
max_sequence_length=512,
|
89 |
-
guidance_scale=
|
90 |
)
|
91 |
return retu
|
92 |
except:
|
@@ -95,9 +95,9 @@ def Piper(_do):
|
|
95 |
def infer(prompt_en):
|
96 |
name = generate_random_string(12)+".png"
|
97 |
if prompt_en == "":
|
98 |
-
_do = 'photographed scene, highly detailed,
|
99 |
else:
|
100 |
-
_do = f'{ prompt_en } photograph, highly detailed,
|
101 |
output = Piper(_do)
|
102 |
if output == "":
|
103 |
return output
|
|
|
84 |
_do,
|
85 |
height=480,
|
86 |
width=480,
|
87 |
+
num_inference_steps=20,
|
88 |
max_sequence_length=512,
|
89 |
+
guidance_scale=10
|
90 |
)
|
91 |
return retu
|
92 |
except:
|
|
|
95 |
def infer(prompt_en):
|
96 |
name = generate_random_string(12)+".png"
|
97 |
if prompt_en == "":
|
98 |
+
_do = 'photographed scene, highly detailed, realistic content, dynamic poze, deep field, natural sharp vivid coloring, rough texture'
|
99 |
else:
|
100 |
+
_do = f'{ prompt_en } photograph, highly detailed, realistic content, dynamic poze, deep field, natural sharp vivid coloring, rough texture'
|
101 |
output = Piper(_do)
|
102 |
if output == "":
|
103 |
return output
|