Update process_data.py
Browse files- process_data.py +5 -4
process_data.py
CHANGED
|
@@ -193,6 +193,7 @@ def generate_json_pieces(input_data, parameters):
|
|
| 193 |
)
|
| 194 |
|
| 195 |
field_generated_json = field_response.choices[0].message.parsed
|
|
|
|
| 196 |
|
| 197 |
|
| 198 |
print("FIELD JSON: ")
|
|
@@ -213,7 +214,7 @@ def generate_json_pieces(input_data, parameters):
|
|
| 213 |
|
| 214 |
|
| 215 |
print("PLANT JSON: ")
|
| 216 |
-
plant_pretty_json = plant_generated_json.json()
|
| 217 |
print(plant_pretty_json) # debugging
|
| 218 |
|
| 219 |
log_response = client.beta.chat.completions.parse(
|
|
@@ -229,7 +230,7 @@ def generate_json_pieces(input_data, parameters):
|
|
| 229 |
|
| 230 |
|
| 231 |
print("LOG JSON: ")
|
| 232 |
-
log_pretty_json = log_generated_json.json()
|
| 233 |
print(log_pretty_json) # debugging
|
| 234 |
|
| 235 |
soil_response = client.beta.chat.completions.parse(
|
|
@@ -245,7 +246,7 @@ def generate_json_pieces(input_data, parameters):
|
|
| 245 |
|
| 246 |
|
| 247 |
print("SOIL JSON: ")
|
| 248 |
-
soil_pretty_json = soil_generated_json.json()
|
| 249 |
print(soil_pretty_json) # debugging
|
| 250 |
|
| 251 |
yield_response = client.beta.chat.completions.parse(
|
|
@@ -261,7 +262,7 @@ def generate_json_pieces(input_data, parameters):
|
|
| 261 |
|
| 262 |
|
| 263 |
print("YIELD JSON: ")
|
| 264 |
-
yield_pretty_json = yield_generated_json.json()
|
| 265 |
print(yield_pretty_json) # debugging
|
| 266 |
|
| 267 |
plantings = {
|
|
|
|
| 193 |
)
|
| 194 |
|
| 195 |
field_generated_json = field_response.choices[0].message.parsed
|
| 196 |
+
print(type(field_generated_json))
|
| 197 |
|
| 198 |
|
| 199 |
print("FIELD JSON: ")
|
|
|
|
| 214 |
|
| 215 |
|
| 216 |
print("PLANT JSON: ")
|
| 217 |
+
plant_pretty_json = plant_generated_json.json()
|
| 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.json()
|
| 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.json()
|
| 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.json()
|
| 266 |
print(yield_pretty_json) # debugging
|
| 267 |
|
| 268 |
plantings = {
|