aymanemalih commited on
Commit
0e854dc
·
1 Parent(s): 8c53e43

Update gpt.py

Browse files
Files changed (1) hide show
  1. gpt.py +1 -1
gpt.py CHANGED
@@ -40,7 +40,7 @@ def get_keywords(question):
40
  function_call={"name": "list_keywords", "arguments": ["list"]},
41
  )
42
 
43
- arguments = response["choices"][0].text
44
  print(arguments)
45
  return " ".join(arguments).split(" ")
46
 
 
40
  function_call={"name": "list_keywords", "arguments": ["list"]},
41
  )
42
 
43
+ arguments = response.choices[0].text
44
  print(arguments)
45
  return " ".join(arguments).split(" ")
46