Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -77,14 +77,14 @@ def Piper(_do):
|
|
77 |
_do,
|
78 |
height=448,
|
79 |
width=448,
|
80 |
-
negative_prompt="",
|
81 |
num_inference_steps=400,
|
82 |
-
guidance_scale=
|
83 |
)
|
84 |
|
85 |
def infer(prompt):
|
86 |
name = generate_random_string(12)+".png"
|
87 |
-
_do = f'
|
88 |
image = Piper(_do).images[0].save(name)
|
89 |
return name
|
90 |
|
|
|
77 |
_do,
|
78 |
height=448,
|
79 |
width=448,
|
80 |
+
negative_prompt="text logo:",
|
81 |
num_inference_steps=400,
|
82 |
+
guidance_scale=10
|
83 |
)
|
84 |
|
85 |
def infer(prompt):
|
86 |
name = generate_random_string(12)+".png"
|
87 |
+
_do = f'{ translate(prompt,"english") }:'.upper()
|
88 |
image = Piper(_do).images[0].save(name)
|
89 |
return name
|
90 |
|