Spaces:
Running on Zero

Ruurd commited on
Commit
4d3e9fe
·
verified ·
1 Parent(s): 32b1a1f

Set answer_start to 0

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -209,7 +209,8 @@ def diffusion_chat(question, eot_weight, mask_weight, max_it, pause_length, shar
209
  if answer_start is None:
210
  yield "Error: Could not find Assistant marker in input."
211
  return
212
-
 
213
  if len(input_ids) < 256:
214
  input_ids += [pad_token] * (256 - len(input_ids))
215
  else:
 
209
  if answer_start is None:
210
  yield "Error: Could not find Assistant marker in input."
211
  return
212
+ answer_start = 0
213
+
214
  if len(input_ids) < 256:
215
  input_ids += [pad_token] * (256 - len(input_ids))
216
  else: