Spaces:
Runtime error
Runtime error
Commit
·
0e854dc
1
Parent(s):
8c53e43
Update gpt.py
Browse files
gpt.py
CHANGED
@@ -40,7 +40,7 @@ def get_keywords(question):
|
|
40 |
function_call={"name": "list_keywords", "arguments": ["list"]},
|
41 |
)
|
42 |
|
43 |
-
arguments = response
|
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 |
|