Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
9a4b368
1
Parent(s):
5708410
oops!
Browse files
app.py
CHANGED
@@ -119,7 +119,7 @@ def infer(code):
|
|
119 |
eos_token_id=0,
|
120 |
)[0]
|
121 |
field_output = tokenizer.decode(
|
122 |
-
field_output[
|
123 |
skip_special_tokens=True,
|
124 |
clean_up_tokenization_spaces=True,
|
125 |
)
|
|
|
119 |
eos_token_id=0,
|
120 |
)[0]
|
121 |
field_output = tokenizer.decode(
|
122 |
+
field_output[field_input_ids.size(1) :],
|
123 |
skip_special_tokens=True,
|
124 |
clean_up_tokenization_spaces=True,
|
125 |
)
|