Tachi67 commited on
Commit
9c220ad
·
1 Parent(s): dc291f8

Update CodeFileEditAtomicFlow.py

Browse files
Files changed (1) hide show
  1. CodeFileEditAtomicFlow.py +3 -2
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
- "# If you prefer not to give any thoughts, just leave it blank, the code will be added to the library as it is "
20
- "in this file.\n"
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: