aymanemalih commited on
Commit
3785c90
·
1 Parent(s): 00cd793

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -2
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: