rosemariafontana commited on
Commit
1b6e780
·
verified ·
1 Parent(s): 5e9c273

Update process_data.py

Browse files
Files changed (1) hide show
  1. process_data.py +5 -5
process_data.py CHANGED
@@ -508,13 +508,13 @@ def pre_processing(processed_data):
508
  print("Response text")
509
  print(response_text)
510
 
511
- input_data["input_text_pieces"]["pre_processed_pieces"][text_label] = response_text
512
 
513
- return input_data
514
 
515
  if processed_data["inputstyle"] == "big-block-input-text":
516
 
517
- input_text = input_data["input_text"]
518
 
519
  for pre_prompt in pre_processing_list:
520
  try:
@@ -545,8 +545,8 @@ def pre_processing(processed_data):
545
  except Exception as e:
546
  print(f"Failed to parse response as JSON. Error was: {e}")
547
 
548
- input_data["input_text"] = input_text
549
- return input_data
550
 
551
 
552
  def process_specifications(processed_data):
 
508
  print("Response text")
509
  print(response_text)
510
 
511
+ processed_data["input_text_pieces"]["pre_processed_pieces"][text_label] = response_text
512
 
513
+ return processed_data
514
 
515
  if processed_data["inputstyle"] == "big-block-input-text":
516
 
517
+ input_text = processed_data["input_text"]
518
 
519
  for pre_prompt in pre_processing_list:
520
  try:
 
545
  except Exception as e:
546
  print(f"Failed to parse response as JSON. Error was: {e}")
547
 
548
+ processed_data["input_text"] = input_text
549
+ return processed_data
550
 
551
 
552
  def process_specifications(processed_data):