Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,8 +21,9 @@ pipe = GlmImagePipeline.from_pretrained(
|
|
| 21 |
|
| 22 |
|
| 23 |
@spaces.GPU(duration=120)
|
| 24 |
-
def infer(prompt, seed=
|
| 25 |
"""Main inference function"""
|
|
|
|
| 26 |
randomize_seed=False
|
| 27 |
width=1024
|
| 28 |
height=1024
|
|
|
|
| 21 |
|
| 22 |
|
| 23 |
@spaces.GPU(duration=120)
|
| 24 |
+
def infer(prompt, seed=0.5, guidance_scale=1.5):
|
| 25 |
"""Main inference function"""
|
| 26 |
+
seed = int(seed*100)
|
| 27 |
randomize_seed=False
|
| 28 |
width=1024
|
| 29 |
height=1024
|