abidlabs HF Staff commited on
Commit
4b39e2a
·
verified ·
1 Parent(s): 98dfd60

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -21,8 +21,9 @@ pipe = GlmImagePipeline.from_pretrained(
21
 
22
 
23
  @spaces.GPU(duration=120)
24
- def infer(prompt, seed=42, guidance_scale=1.5):
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