Update process_data.py
Browse files- process_data.py +2 -2
process_data.py
CHANGED
|
@@ -319,11 +319,11 @@ def pre_processing(input_data, parameters):
|
|
| 319 |
print("Starting preprocessing")
|
| 320 |
if input_data["stepwise_json_creation"][0] == "stepwisejsoncreation":
|
| 321 |
print("Stepwise Creation")
|
| 322 |
-
|
|
|
|
| 323 |
if parameters["chaining"]:
|
| 324 |
print("Chaining")
|
| 325 |
for text_label, text_body in input_data["input_text_pieces"].items():
|
| 326 |
-
input_data["input_text_pieces"]["pre_processed_pieces"] = {}
|
| 327 |
for parameter_name, parameter_value in parameters.items():
|
| 328 |
if 'pre_prompt' in parameter_name and parameter_value is not None and not isinstance(parameter_value, bool):
|
| 329 |
response = client.chat.completions.create(
|
|
|
|
| 319 |
print("Starting preprocessing")
|
| 320 |
if input_data["stepwise_json_creation"][0] == "stepwisejsoncreation":
|
| 321 |
print("Stepwise Creation")
|
| 322 |
+
input_data["input_text_pieces"]["pre_processed_pieces"] = {}
|
| 323 |
+
|
| 324 |
if parameters["chaining"]:
|
| 325 |
print("Chaining")
|
| 326 |
for text_label, text_body in input_data["input_text_pieces"].items():
|
|
|
|
| 327 |
for parameter_name, parameter_value in parameters.items():
|
| 328 |
if 'pre_prompt' in parameter_name and parameter_value is not None and not isinstance(parameter_value, bool):
|
| 329 |
response = client.chat.completions.create(
|