Model: GusPuffy/sentient-simulations-pydecompiler-3.7-6.7b-v0.9 Source: Original Platform
18 lines
465 B
Python
18 lines
465 B
Python
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"
|