Skip to content

Commit

Permalink
added print statements to main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ayyubibrahimi committed Nov 16, 2023
1 parent a5edfd4 commit abd3ef1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/googlecloud/functions/getanswer/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,14 @@ def getanswer(request):
logging.error(f"Failed to parse answer string to JSON: {e}")
return ("Failed to process answer", 500, headers)

print(f"Answer: {answer}")
responses_data = answer.get("responses")

print(f"Responses: {responses_data}")
citations_data = answer.get("citations")

print(f"Citations: {citations_data}")

end = time.time()
elapsed = int((end - start) * 1000)
update_supabase(responses_data, citations_data, card_id, elapsed)
Expand Down

1 comment on commit abd3ef1

@vercel
Copy link

@vercel vercel bot commented on abd3ef1 Nov 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.