Ahsen Khaliq commited on
Commit
94a748e
1 Parent(s): 178625c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -113,7 +113,10 @@ def inference(text,steps,image):
113
  else:
114
  target = clip_model.embed_text(text)
115
  steps = steps
116
- seed = 2
 
 
 
117
  tf = Compose([
118
  Resize(224),
119
  lambda x: torch.clamp((x+1)/2,min=0,max=1),
 
113
  else:
114
  target = clip_model.embed_text(text)
115
  steps = steps
116
+ #seed = 2
117
+ seed = -1
118
+ if seed == -1:
119
+ seed = np.random.randint(0,2**32 - 1)
120
  tf = Compose([
121
  Resize(224),
122
  lambda x: torch.clamp((x+1)/2,min=0,max=1),