JMalott commited on
Commit
4a35846
1 Parent(s): 29b03c5

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +2 -2
utils.py CHANGED
@@ -160,7 +160,7 @@ def generate(prompt,crazy,k):
160
  newPrompt += " architecture"
161
 
162
  images = model.sampling(prompt=newPrompt,
163
- top_k=256,
164
  top_p=None,
165
  softmax_temperature=crazy,
166
  num_candidates=num_candidates,
@@ -181,7 +181,7 @@ def generate(prompt,crazy,k):
181
  item = {}
182
  item['prompt'] = prompt
183
  item['crazy'] = crazy
184
- item['k'] = 20
185
  item['image'] = Image.fromarray((result*255).astype(np.uint8))
186
  st.session_state.results.append(item)
187
 
 
160
  newPrompt += " architecture"
161
 
162
  images = model.sampling(prompt=newPrompt,
163
+ top_k=k,
164
  top_p=None,
165
  softmax_temperature=crazy,
166
  num_candidates=num_candidates,
 
181
  item = {}
182
  item['prompt'] = prompt
183
  item['crazy'] = crazy
184
+ item['k'] = k
185
  item['image'] = Image.fromarray((result*255).astype(np.uint8))
186
  st.session_state.results.append(item)
187