Spaces:
Running
on
Zero
Running
on
Zero
Set answer_start to 0
Browse files
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:
|