Update app.py
Browse files
app.py
CHANGED
|
@@ -152,6 +152,7 @@ def generate_json(specification, model_version):
|
|
| 152 |
raise ValueError(f"API error: {interactions_response['error']['message']}")
|
| 153 |
|
| 154 |
farm_generated_json = farm_info_response.choices[0].message.parsed
|
|
|
|
| 155 |
print(farm_generated_json) # debugging
|
| 156 |
|
| 157 |
farm_pretty_json = farm_generated_json.json()
|
|
@@ -169,6 +170,8 @@ def generate_json(specification, model_version):
|
|
| 169 |
raise ValueError(f"API error: {interactions_response['error']['message']}")
|
| 170 |
|
| 171 |
interactions_generated_json = interactions_response.choices[0].message.parsed
|
|
|
|
|
|
|
| 172 |
print(interactions_generated_json) # debugging 2
|
| 173 |
|
| 174 |
interactions_pretty_json = interactions_generated_json.json()
|
|
@@ -187,7 +190,9 @@ def generate_json(specification, model_version):
|
|
| 187 |
raise ValueError(f"API error: {trial_response['error']['message']}")
|
| 188 |
|
| 189 |
trial_generated_json = trial_response.choices[0].message.parsed
|
| 190 |
-
|
|
|
|
|
|
|
| 191 |
|
| 192 |
trial_pretty_json = trial_generated_json.json()
|
| 193 |
|
|
|
|
| 152 |
raise ValueError(f"API error: {interactions_response['error']['message']}")
|
| 153 |
|
| 154 |
farm_generated_json = farm_info_response.choices[0].message.parsed
|
| 155 |
+
print("FARM JSON: ")
|
| 156 |
print(farm_generated_json) # debugging
|
| 157 |
|
| 158 |
farm_pretty_json = farm_generated_json.json()
|
|
|
|
| 170 |
raise ValueError(f"API error: {interactions_response['error']['message']}")
|
| 171 |
|
| 172 |
interactions_generated_json = interactions_response.choices[0].message.parsed
|
| 173 |
+
|
| 174 |
+
print("INTERACTIONS JSON: ")
|
| 175 |
print(interactions_generated_json) # debugging 2
|
| 176 |
|
| 177 |
interactions_pretty_json = interactions_generated_json.json()
|
|
|
|
| 190 |
raise ValueError(f"API error: {trial_response['error']['message']}")
|
| 191 |
|
| 192 |
trial_generated_json = trial_response.choices[0].message.parsed
|
| 193 |
+
|
| 194 |
+
print("TRIALS JSON: ")
|
| 195 |
+
print(trial_generated_json) # debugging 3
|
| 196 |
|
| 197 |
trial_pretty_json = trial_generated_json.json()
|
| 198 |
|