Spaces:
Running on Zero

Ruurd commited on
Commit
8ee3ad1
·
verified ·
1 Parent(s): 4d3e9fe

Remove answer_start check

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -206,9 +206,9 @@ def diffusion_chat(question, eot_weight, mask_weight, max_it, pause_length, shar
206
  prompt = ""
207
  input_ids = tokenizer.encode(prompt, add_special_tokens=False)
208
  answer_start = find_answer_start(input_ids, assistant_marker_ids)
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:
 
206
  prompt = ""
207
  input_ids = tokenizer.encode(prompt, add_special_tokens=False)
208
  answer_start = find_answer_start(input_ids, assistant_marker_ids)
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: