baconnier commited on
Commit
0516f98
1 Parent(s): f785948

Update prompt_refiner.py

Browse files
Files changed (1) hide show
  1. prompt_refiner.py +2 -1
prompt_refiner.py CHANGED
@@ -52,9 +52,9 @@ class PromptRefiner:
52
  json_str = self._clean_json_string(json_match.group(1))
53
  try:
54
  parsed_json = json.loads(json_str)
 
55
  if isinstance(parsed_json, str):
56
  parsed_json = json.loads(parsed_json)
57
- print(parsed_json)
58
  prompt_analysis = f"""
59
  #### Original prompt analysis
60
  - {parsed_json.get("initial_prompt_evaluation", "")}
@@ -101,6 +101,7 @@ class PromptRefiner:
101
  output[key] = match.group(1).strip() if match else ""
102
 
103
  output["response_content"] = {"raw_content": content}
 
104
  return output
105
 
106
  def _create_error_dict(self, error_message: str) -> dict:
 
52
  json_str = self._clean_json_string(json_match.group(1))
53
  try:
54
  parsed_json = json.loads(json_str)
55
+ print(parsed_json)
56
  if isinstance(parsed_json, str):
57
  parsed_json = json.loads(parsed_json)
 
58
  prompt_analysis = f"""
59
  #### Original prompt analysis
60
  - {parsed_json.get("initial_prompt_evaluation", "")}
 
101
  output[key] = match.group(1).strip() if match else ""
102
 
103
  output["response_content"] = {"raw_content": content}
104
+ print(content)
105
  return output
106
 
107
  def _create_error_dict(self, error_message: str) -> dict: