Update README.md
Browse files
README.md
CHANGED
@@ -112,7 +112,7 @@ def example_function(x):
|
|
112 |
</function_code>
|
113 |
<question>Give one line description of the python code above in natural language.</question>
|
114 |
<doc>"""
|
115 |
-
inputs = tokenizer(
|
116 |
outputs = model.generate(**inputs, max_new_tokens=300)
|
117 |
tokenizer.decode(outputs[0], skip_special_tokens=True).split('<doc>')[-1].split('</doc>')[0]
|
118 |
```
|
|
|
112 |
</function_code>
|
113 |
<question>Give one line description of the python code above in natural language.</question>
|
114 |
<doc>"""
|
115 |
+
inputs = tokenizer(prompt, return_tensors="pt")
|
116 |
outputs = model.generate(**inputs, max_new_tokens=300)
|
117 |
tokenizer.decode(outputs[0], skip_special_tokens=True).split('<doc>')[-1].split('</doc>')[0]
|
118 |
```
|