Skip to content

Commit

Permalink
take out debug
Browse files Browse the repository at this point in the history
  • Loading branch information
cbizon committed Jul 14, 2023
1 parent 96e03aa commit 40a4bb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/service_aggregator.py
Original file line number Diff line number Diff line change
Expand Up @@ -939,9 +939,9 @@ async def robokop_infer(input_message, guid, question_qnode, answer_qnode):
num_results = len(rmessage["message"].get("results",[]))
logger.info(f"Returned {num_results} results")
if num_results > 0 and num_results < 10000: #more than this number of results and you're into noise.
with (open(f"{guid}_r_{nr}.json", 'w')) as outf:
json.dump(rmessage, outf, indent=2)
nr += 1
#with (open(f"{guid}_r_{nr}.json", 'w')) as outf:
# json.dump(rmessage, outf, indent=2)
# nr += 1
result_messages.append(rmessage)
else:
logger.error(f"{guid}: {response.status_code} returned.")
Expand Down

0 comments on commit 40a4bb7

Please sign in to comment.