parsel
parsel copied to clipboard
Code for Parsel 🐍 - generate complex programs with language models
Since Codex was deprecated by OpenAI, I tried to reproduce the experiments on the dataset APPS in Parsel paper by pure GPT3.5. Thanks to the code in branch `saycan`, I...
``` Implementing SCC 0 {'select_airport_cities'} Implementing SCC 1 {'sky_city_cost'} Trying 8 completions Calling Codex! 8 completions 500 tokens each Error The model: `code-davinci-002` does not exist Trying 16 completions Calling...
The Lean and VirtualHome tests as outlined in the README do not run by simply changing the mode in `__init__.py`.
I did something like: ``` cleanLines = [] with open('requirements.txt', 'r') as req_file: for line in req_file: cline = line.split('==')[0].strip() print(line.split('==')[0].strip()) cleanLines.append(cline) with open('requirements_clean.txt', 'w') as newFile: for line in...
On the following input (calc_no_tests_no_args.ss): ``` given a string containing numbers and operators in reverse polish notation, calculate the result. The expression is given as a list of numbers and...
When invoking parsel.py with a filename that has "." in the path (e.g. "parsel.py ./programs/foo.ss"), current logic would set target_file to the empty string, hence writing output to a file...