Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -65,18 +65,18 @@ def infer(prompt):
|
|
| 65 |
print(f'Final prompt: {english_prompt}')
|
| 66 |
image = pipe(
|
| 67 |
english_prompt,
|
| 68 |
-
height=
|
| 69 |
-
width=
|
| 70 |
negative_prompt="",
|
| 71 |
-
num_inference_steps=
|
| 72 |
-
guidance_scale=
|
| 73 |
).images[0].save(name)
|
| 74 |
return name
|
| 75 |
|
| 76 |
css="""
|
| 77 |
#col-container {
|
| 78 |
margin: 0 auto;
|
| 79 |
-
max-width:
|
| 80 |
}
|
| 81 |
#image-container {
|
| 82 |
aspect-ratio: 1 / 1;
|
|
|
|
| 65 |
print(f'Final prompt: {english_prompt}')
|
| 66 |
image = pipe(
|
| 67 |
english_prompt,
|
| 68 |
+
height=768,
|
| 69 |
+
width=768,
|
| 70 |
negative_prompt="",
|
| 71 |
+
num_inference_steps=40,
|
| 72 |
+
guidance_scale=9.0
|
| 73 |
).images[0].save(name)
|
| 74 |
return name
|
| 75 |
|
| 76 |
css="""
|
| 77 |
#col-container {
|
| 78 |
margin: 0 auto;
|
| 79 |
+
max-width: 14cm;
|
| 80 |
}
|
| 81 |
#image-container {
|
| 82 |
aspect-ratio: 1 / 1;
|