cmulgy commited on
Commit
d8b930e
1 Parent(s): 28ea05d

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +4 -4
utils.py CHANGED
@@ -32,15 +32,15 @@ import datetime
32
  import json
33
  import arxiv
34
 
35
- def summarize_research_direction(personal_info):
36
  prompt_qa = (
37
- "Based on the list of the researcher's first person persona from different times, please write a comprehensive first person persona. Focus more on more rescent personas. Be concise and clear (around 300 words)."
38
- "Here are the personas from different times: {peronalinfo}"
39
  )
40
 
41
  openai.api_key = KEY
42
  input = {}
43
- input['peronalinfo'] = personal_info
44
  prompt = prompt_qa.format_map(input)
45
  try:
46
  completion = openai.ChatCompletion.create(
 
32
  import json
33
  import arxiv
34
 
35
+ def summarize_research_direction(papers):
36
  prompt_qa = (
37
+ "Based on the list of the researcher's papers from different periods, please write a comprehensive first person persona. Focus more on recent papers. Be concise and clear (around 300 words)."
38
+ "Here are the papers from different periods: {papers}"
39
  )
40
 
41
  openai.api_key = KEY
42
  input = {}
43
+ input['peronalinfo'] = papers
44
  prompt = prompt_qa.format_map(input)
45
  try:
46
  completion = openai.ChatCompletion.create(