rosemariafontana commited on
Commit
6838299
·
verified ·
1 Parent(s): 8a8deb5

Update process_data.py

Browse files
Files changed (1) hide show
  1. process_data.py +4 -8
process_data.py CHANGED
@@ -274,13 +274,8 @@ def pre_processing(input_data, parameters):
274
 
275
  response_text = response.choices[0].message.content
276
  input_data["input_text_pieces"]["pre_processed_pieces"][text_label] = response_text
277
- else:
278
- # Add in here the other schemas (interactions and trials)
279
- #if parameters['combined_prompt']:
280
- # input_context = f"You are processing farm activity data. Here's important context of the data {parameters['combined_pre_prompt']}. With this context in mind, "
281
- # input_data["input_context"] = input_context
282
- # return input_data
283
-
284
 
285
  if input_data["stepwise_json_creation"] == "singlejsoncreation":
286
  if parameters["chaining"]:
@@ -319,7 +314,8 @@ def pre_processing(input_data, parameters):
319
  except Exception as e:
320
  print(f"Failed to parse response as JSON. Error was: {e}")
321
 
322
-
 
323
 
324
 
325
  def process_specifications(input_data, parameters):
 
274
 
275
  response_text = response.choices[0].message.content
276
  input_data["input_text_pieces"]["pre_processed_pieces"][text_label] = response_text
277
+
278
+ return input_data
 
 
 
 
 
279
 
280
  if input_data["stepwise_json_creation"] == "singlejsoncreation":
281
  if parameters["chaining"]:
 
314
  except Exception as e:
315
  print(f"Failed to parse response as JSON. Error was: {e}")
316
 
317
+ input_data["input_text"] = input_text
318
+ return input_data
319
 
320
 
321
  def process_specifications(input_data, parameters):