Update process_data.py
Browse files- process_data.py +5 -5
process_data.py
CHANGED
|
@@ -197,7 +197,7 @@ def generate_json_pieces(input_data, parameters):
|
|
| 197 |
|
| 198 |
|
| 199 |
print("FIELD JSON: ")
|
| 200 |
-
field_pretty_json = field_generated_json.
|
| 201 |
print(field_pretty_json) # debugging
|
| 202 |
|
| 203 |
|
|
@@ -214,7 +214,7 @@ def generate_json_pieces(input_data, parameters):
|
|
| 214 |
|
| 215 |
|
| 216 |
print("PLANT JSON: ")
|
| 217 |
-
plant_pretty_json = plant_generated_json.
|
| 218 |
print(plant_pretty_json) # debugging
|
| 219 |
|
| 220 |
log_response = client.beta.chat.completions.parse(
|
|
@@ -230,7 +230,7 @@ def generate_json_pieces(input_data, parameters):
|
|
| 230 |
|
| 231 |
|
| 232 |
print("LOG JSON: ")
|
| 233 |
-
log_pretty_json = log_generated_json.
|
| 234 |
print(log_pretty_json) # debugging
|
| 235 |
|
| 236 |
soil_response = client.beta.chat.completions.parse(
|
|
@@ -246,7 +246,7 @@ def generate_json_pieces(input_data, parameters):
|
|
| 246 |
|
| 247 |
|
| 248 |
print("SOIL JSON: ")
|
| 249 |
-
soil_pretty_json = soil_generated_json.
|
| 250 |
print(soil_pretty_json) # debugging
|
| 251 |
|
| 252 |
yield_response = client.beta.chat.completions.parse(
|
|
@@ -262,7 +262,7 @@ def generate_json_pieces(input_data, parameters):
|
|
| 262 |
|
| 263 |
|
| 264 |
print("YIELD JSON: ")
|
| 265 |
-
yield_pretty_json = yield_generated_json.
|
| 266 |
print(yield_pretty_json) # debugging
|
| 267 |
|
| 268 |
plantings = {
|
|
|
|
| 197 |
|
| 198 |
|
| 199 |
print("FIELD JSON: ")
|
| 200 |
+
field_pretty_json = field_generated_json.dict()
|
| 201 |
print(field_pretty_json) # debugging
|
| 202 |
|
| 203 |
|
|
|
|
| 214 |
|
| 215 |
|
| 216 |
print("PLANT JSON: ")
|
| 217 |
+
plant_pretty_json = plant_generated_json.dict()
|
| 218 |
print(plant_pretty_json) # debugging
|
| 219 |
|
| 220 |
log_response = client.beta.chat.completions.parse(
|
|
|
|
| 230 |
|
| 231 |
|
| 232 |
print("LOG JSON: ")
|
| 233 |
+
log_pretty_json = log_generated_json.dict()
|
| 234 |
print(log_pretty_json) # debugging
|
| 235 |
|
| 236 |
soil_response = client.beta.chat.completions.parse(
|
|
|
|
| 246 |
|
| 247 |
|
| 248 |
print("SOIL JSON: ")
|
| 249 |
+
soil_pretty_json = soil_generated_json.dict()
|
| 250 |
print(soil_pretty_json) # debugging
|
| 251 |
|
| 252 |
yield_response = client.beta.chat.completions.parse(
|
|
|
|
| 262 |
|
| 263 |
|
| 264 |
print("YIELD JSON: ")
|
| 265 |
+
yield_pretty_json = yield_generated_json.dict()
|
| 266 |
print(yield_pretty_json) # debugging
|
| 267 |
|
| 268 |
plantings = {
|