| def create_prompt(bytecode: str): | |
| return ( | |
| "\n\n".join( | |
| [ | |
| "### Instruction:", | |
| "Using the provided Python 3.7 bytecode chunk, continue outputting the Python source code", | |
| "### Input:", | |
| bytecode, | |
| "### Response:", | |
| ] | |
| ) | |
| + "\n\n" | |
| ) | |
| def is_bytecode_empty(bytecode: str): | |
| return bytecode.strip() == "LOAD_CONST None\nRETURN_VALUE" | |