Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -104,7 +104,7 @@ def generate_text(prompt, engine="text-davinci-003"):
|
|
104 |
stop=None,
|
105 |
temperature=0.7,
|
106 |
)
|
107 |
-
message = completions.choices[
|
108 |
return message
|
109 |
|
110 |
def generate_answer(question,openAI_key):
|
|
|
104 |
stop=None,
|
105 |
temperature=0.7,
|
106 |
)
|
107 |
+
message = completions.choices[0].text
|
108 |
return message
|
109 |
|
110 |
def generate_answer(question,openAI_key):
|