Update README.md
Browse files
README.md
CHANGED
@@ -20,10 +20,12 @@ inp = """def do_something():
|
|
20 |
"""
|
21 |
|
22 |
newlinechar = "<N>"
|
23 |
-
converted = inp.replace("\
|
|
|
24 |
print("length:", len(converted))
|
25 |
-
print(converted)
|
|
|
26 |
|
27 |
-
|
28 |
`def do_something():<N> print("Hello")<N>`
|
29 |
...which is what the model is expecting as input.
|
|
|
20 |
"""
|
21 |
|
22 |
newlinechar = "<N>"
|
23 |
+
converted = inp.replace("\
|
24 |
+
", newlinechar)
|
25 |
print("length:", len(converted))
|
26 |
+
print(converted)
|
27 |
+
```
|
28 |
|
29 |
+
This should give you something like:
|
30 |
`def do_something():<N> print("Hello")<N>`
|
31 |
...which is what the model is expecting as input.
|