Skip to content

Commit

Permalink
fixing varied responses formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
outlawhayden committed Dec 11, 2023
1 parent f90ec50 commit 712f652
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def make_api_call(title, k_inp):
response = requests.post(f"{api_endpoint}", json=payload)
rdict = json.loads(response.text)
card_type_out = rdict["card_type"]
citations_out = rdict["citations"]
responses_out = rdict["responses"]
citations_out = json.dumps(eval(str(rdict["citations"])))
responses_out = json.dumps(eval(str(rdict["responses"])))
return card_type_out, citations_out, responses_out, k_inp

# Open CSV file in append mode
Expand Down

0 comments on commit 712f652

Please sign in to comment.