Spaces:
Build error
Build error
Update process_data.py
Browse files348 unmodified lines349350351352353354355356357358359360361362363364348 unmodified linesprint("Processing specifications")# here is where parsing and other things will happen beforeif input_data["stepwise_json_creation"] == "stepwisejsoncreation":if parameters["pre_prompt"] == True:processed_input = pre_processing(input_data, parameters)else:processed_input = input_datareturn generate_json_pieces(processed_input, parameters)elif input_data["stepwise_json_creation"] == "singlejsoncreation":input_data["input_context"] = Falseif parameters["pre_prompt"] == True:processed_input = pre_processing(input_data, parameters)else:processed_input = input_datareturn generate_json(processed_input, parameters)348 unmodified lines349350351352353354355356357358359360361362363364365366367368369370348 unmodified linesprint("Processing specifications")# here is where parsing and other things will happen beforeif input_data["stepwise_json_creation"] == "stepwisejsoncreation":print("You are continuing with stepwise json creation")if parameters["pre_prompt"] == True:print("You are continuing with pre_prompt processing")processed_input = pre_processing(input_data, parameters)else:print("You have elsed into no pre-processing")processed_input = input_datareturn generate_json_pieces(processed_input, parameters)elif input_data["stepwise_json_creation"] == "singlejsoncreation":print("You are elifing into single json creation")input_data["input_context"] = Falseif parameters["pre_prompt"] == True:print("You are preprocessing now")processed_input = pre_processing(input_data, parameters)else:print("You do not have any preprocessing now")processed_input = input_datareturn generate_json(processed_input, parameters)
process_data.py+6