rosemariafontana commited on
Commit
765c577
·
verified ·
1 Parent(s): e0e50ea

Update process_data.py

Browse files
Files changed (1) hide show
  1. process_data.py +3 -3
process_data.py CHANGED
@@ -194,7 +194,7 @@ def generate_json_pieces(processed_data):
194
  print("Model Version")
195
  print(model_version)
196
 
197
- if processed_data["parameters"]["pre_process"] == "yes":
198
  print("Pre prompt is true")
199
  field_data_input = processed_data["input_text_pieces"]["pre_processed_pieces"]["field_data_input"]
200
  planting_data_input = processed_data["input_text_pieces"]["pre_processed_pieces"]["planting_data_input"]
@@ -575,7 +575,7 @@ def process_specifications(processed_data):
575
 
576
  if processed_data["inputstyle"] == "individual-pieces-input-text":
577
  print("You are continuing with step-wise creation with your individual text pieces")
578
- if processed_data["parameters"]["pre_process"] == "yes":
579
  print("You are continuing with pre_prompt processing")
580
  processed_input = pre_processing(processed_data)
581
  else:
@@ -584,7 +584,7 @@ def process_specifications(processed_data):
584
  return generate_json_pieces(processed_input)
585
  elif processed_data["inputstyle"] == "big-block-input-text":
586
  print("You are elifing into single json creation")
587
- if processed_data["parameters"]["pre_process"] == "yes":
588
  print("You are preprocessing now")
589
  processed_input = pre_processing(processed_data)
590
  else:
 
194
  print("Model Version")
195
  print(model_version)
196
 
197
+ if processed_data["parameters"]["preprocessdata"] == "yes":
198
  print("Pre prompt is true")
199
  field_data_input = processed_data["input_text_pieces"]["pre_processed_pieces"]["field_data_input"]
200
  planting_data_input = processed_data["input_text_pieces"]["pre_processed_pieces"]["planting_data_input"]
 
575
 
576
  if processed_data["inputstyle"] == "individual-pieces-input-text":
577
  print("You are continuing with step-wise creation with your individual text pieces")
578
+ if processed_data["parameters"]["preprocessdata"] == "yes":
579
  print("You are continuing with pre_prompt processing")
580
  processed_input = pre_processing(processed_data)
581
  else:
 
584
  return generate_json_pieces(processed_input)
585
  elif processed_data["inputstyle"] == "big-block-input-text":
586
  print("You are elifing into single json creation")
587
+ if processed_data["parameters"]["preprocessdata"] == "yes":
588
  print("You are preprocessing now")
589
  processed_input = pre_processing(processed_data)
590
  else: