Spaces:
Runtime error
Runtime error
Commit
·
3785c90
1
Parent(s):
00cd793
Update main.py
Browse files
main.py
CHANGED
@@ -256,8 +256,7 @@ def generateQuestions():
|
|
256 |
max_tokens=500,
|
257 |
temperature=0
|
258 |
)
|
259 |
-
resulta = response.choices[0].text
|
260 |
-
chat_references = filtergpt(resulta)
|
261 |
return jsonify(resulta)
|
262 |
# return jsonify({'question': {'id': question_id, 'date': date, 'texte': texte},'result_qdrant':results})
|
263 |
else:
|
|
|
256 |
max_tokens=500,
|
257 |
temperature=0
|
258 |
)
|
259 |
+
resulta = response.choices[0].text.splitlines()
|
|
|
260 |
return jsonify(resulta)
|
261 |
# return jsonify({'question': {'id': question_id, 'date': date, 'texte': texte},'result_qdrant':results})
|
262 |
else:
|