Update CodeFileEditAtomicFlow.py
Browse files
CodeFileEditAtomicFlow.py
CHANGED
|
@@ -16,8 +16,8 @@ class CodeFileEditAtomicFlow(AtomicFlow):
|
|
| 16 |
"# The below code will be appended to " +
|
| 17 |
code_lib_location + "\n"
|
| 18 |
"# Edit the code directly or provide your thoughts down below if you have any suggestions.\n"
|
| 19 |
-
"#
|
| 20 |
-
"
|
| 21 |
"###########\n"
|
| 22 |
"# Code:\n" +
|
| 23 |
code_str +
|
|
@@ -27,6 +27,7 @@ class CodeFileEditAtomicFlow(AtomicFlow):
|
|
| 27 |
with open(temp_file_location, "w") as file:
|
| 28 |
file.write(content)
|
| 29 |
file_written_timestamp = os.path.getmtime(temp_file_location)
|
|
|
|
| 30 |
return True, f"Code written to {temp_file_location}", temp_file_location, file_written_timestamp
|
| 31 |
|
| 32 |
except Exception as e:
|
|
|
|
| 16 |
"# The below code will be appended to " +
|
| 17 |
code_lib_location + "\n"
|
| 18 |
"# Edit the code directly or provide your thoughts down below if you have any suggestions.\n"
|
| 19 |
+
"# Please do provide your feedback in the thoughts section so that JARVIS knows what you "
|
| 20 |
+
"are doing.\n"
|
| 21 |
"###########\n"
|
| 22 |
"# Code:\n" +
|
| 23 |
code_str +
|
|
|
|
| 27 |
with open(temp_file_location, "w") as file:
|
| 28 |
file.write(content)
|
| 29 |
file_written_timestamp = os.path.getmtime(temp_file_location)
|
| 30 |
+
|
| 31 |
return True, f"Code written to {temp_file_location}", temp_file_location, file_written_timestamp
|
| 32 |
|
| 33 |
except Exception as e:
|