Spaces:
Running
on
Zero
Running
on
Zero
Remove answer_start check
Browse files
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 |
-
|
| 211 |
-
|
| 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:
|