livctr commited on
Commit
cf59f7d
·
1 Parent(s): c7611cd

minor clean-up and comments edits

Browse files

Former-commit-id: 2430950af30c9863908052012f9731dde9eee110

data_pipeline/us_professor_verifier.py CHANGED
@@ -71,7 +71,6 @@ Search results (formatted as a numbered list with link name and snippet). \
71
  Again, only return the JSON, just with the dictionary and its fields.
72
  {hits}"""
73
 
74
- # import httpx
75
  def bing_search(person_name, max_retries=0, wait_time=0.5):
76
  """Performs the bing search `person_name` machine learning professor."""
77
  query = "{} machine learning professor".format(person_name)
@@ -405,6 +404,7 @@ def retrieve_batch_output(client, batch_id):
405
  return "INCOMPLETE"
406
 
407
  def batch_process_llm_output(client, batches):
 
408
  client = OpenAI()
409
 
410
  outputs = []
 
71
  Again, only return the JSON, just with the dictionary and its fields.
72
  {hits}"""
73
 
 
74
  def bing_search(person_name, max_retries=0, wait_time=0.5):
75
  """Performs the bing search `person_name` machine learning professor."""
76
  query = "{} machine learning professor".format(person_name)
 
404
  return "INCOMPLETE"
405
 
406
  def batch_process_llm_output(client, batches):
407
+ """Store results from OpenAI batch request."""
408
  client = OpenAI()
409
 
410
  outputs = []