Kunpeng Song commited on
Commit
870ee64
1 Parent(s): ef3a17c
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ article = "<p style='text-align: center'><a href='https://news.machinelearning.s
18
  def MoMA_demo(rgb, subject, prompt):
19
  # move the input and model to GPU for speed if available
20
  with torch.no_grad():
21
- generated_image = model.generate_images(rgb, subject, prompt, strength=1.0, seed=2)
22
  return generated_image
23
 
24
  def inference(rgb, subject, prompt):
 
18
  def MoMA_demo(rgb, subject, prompt):
19
  # move the input and model to GPU for speed if available
20
  with torch.no_grad():
21
+ generated_image = model.generate_images(rgb, subject, prompt, strength=1.0, seed=np.random.randint(0,1000))
22
  return generated_image
23
 
24
  def inference(rgb, subject, prompt):