Spaces:
Runtime error
Runtime error
Update utils.py
Browse files
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=
|
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'] =
|
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 |
|