raghavNCI commited on
Commit
6436242
·
1 Parent(s): 2c39b8a

changes v19

Browse files
Files changed (1) hide show
  1. question.py +2 -2
question.py CHANGED
@@ -135,13 +135,13 @@ async def ask_question(input: QuestionInput):
135
  if not answer:
136
  answer = "Cannot answer – model did not return a valid response."
137
 
138
- print("Answer:", answer)
139
 
140
  return {
141
  "question": question,
142
  "answer": answer.strip(),
143
  "sources": [
144
  {"title": a["title"], "url": a["url"]}
145
- for a in articles
146
  ]
147
  }
 
135
  if not answer:
136
  answer = "Cannot answer – model did not return a valid response."
137
 
138
+ print("Mistral Answer:", answer)
139
 
140
  return {
141
  "question": question,
142
  "answer": answer.strip(),
143
  "sources": [
144
  {"title": a["title"], "url": a["url"]}
145
+ for a in relevant_articles
146
  ]
147
  }