Tachi67 commited on
Commit
a6a51c7
·
1 Parent(s): 072188f

Upload 3 files

Browse files
Files changed (1) hide show
  1. ParseFeedbackAtomicFlow.py +2 -2
ParseFeedbackAtomicFlow.py CHANGED
@@ -52,7 +52,7 @@ class ParseFeedbackAtomicFlow(AtomicFlow):
52
 
53
  def _check_input(self, input_data: Dict[str, Any]):
54
  code_file_exists = "temp_code_file_location" in input_data
55
- plan_file_exists = "plan_file_location" in input_data
56
  if code_file_exists == False and plan_file_exists == False:
57
  raise AssertionError("Neither code file nor plan file is passed to ParseFeedbackAtomicFlow")
58
  elif code_file_exists and plan_file_exists:
@@ -79,7 +79,7 @@ class ParseFeedbackAtomicFlow(AtomicFlow):
79
  user_thoughts = self._parse_user_thoughts(temp_code_file_location)
80
  response = {"code": code_content, "feedback": user_thoughts}
81
 
82
- elif "plan_file_location" in input_data:
83
  plan_file_location = input_data["temp_plan_file_location"]
84
  last_check_time = input_data["temp_plan_file_written_timestamp"]
85
  self._wait_for_file_update(plan_file_location, last_check_time)
 
52
 
53
  def _check_input(self, input_data: Dict[str, Any]):
54
  code_file_exists = "temp_code_file_location" in input_data
55
+ plan_file_exists = "temp_plan_file_location" in input_data
56
  if code_file_exists == False and plan_file_exists == False:
57
  raise AssertionError("Neither code file nor plan file is passed to ParseFeedbackAtomicFlow")
58
  elif code_file_exists and plan_file_exists:
 
79
  user_thoughts = self._parse_user_thoughts(temp_code_file_location)
80
  response = {"code": code_content, "feedback": user_thoughts}
81
 
82
+ elif "temp_plan_file_location" in input_data:
83
  plan_file_location = input_data["temp_plan_file_location"]
84
  last_check_time = input_data["temp_plan_file_written_timestamp"]
85
  self._wait_for_file_update(plan_file_location, last_check_time)