Update process_data.py
Browse files- process_data.py +6 -0
process_data.py
CHANGED
|
@@ -511,6 +511,10 @@ def pre_processing(processed_data):
|
|
| 511 |
print(response_text)
|
| 512 |
|
| 513 |
processed_data["input_text_pieces"]["pre_processed_pieces"][text_label] = response_text
|
|
|
|
|
|
|
|
|
|
|
|
|
| 514 |
|
| 515 |
return processed_data
|
| 516 |
|
|
@@ -543,6 +547,8 @@ def pre_processing(processed_data):
|
|
| 543 |
print(response_text)
|
| 544 |
|
| 545 |
input_text = response_text
|
|
|
|
|
|
|
| 546 |
|
| 547 |
except Exception as e:
|
| 548 |
print(f"Failed to parse response as JSON. Error was: {e}")
|
|
|
|
| 511 |
print(response_text)
|
| 512 |
|
| 513 |
processed_data["input_text_pieces"]["pre_processed_pieces"][text_label] = response_text
|
| 514 |
+
print("PRE PROCESSED INPUT TEXT FOR TEXT LABEL: ")
|
| 515 |
+
print(text_label)
|
| 516 |
+
print("RESPONSE THAT WILL BE USED: ")
|
| 517 |
+
print(response_text)
|
| 518 |
|
| 519 |
return processed_data
|
| 520 |
|
|
|
|
| 547 |
print(response_text)
|
| 548 |
|
| 549 |
input_text = response_text
|
| 550 |
+
print("RESPONSE THAT WILL BE USED: ")
|
| 551 |
+
print(response_text)
|
| 552 |
|
| 553 |
except Exception as e:
|
| 554 |
print(f"Failed to parse response as JSON. Error was: {e}")
|