Timjo88 commited on
Commit
22ba244
Β·
1 Parent(s): ee382aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ pipeline = start_haystack()
32
  def predict(question):
33
  prediction = pipeline.run(question)
34
  answer = prediction["answers"]
35
- faq_response = "FAQ Question: " + prediction["query"] + "Answer: " + answer[0].answer
36
  return faq_response
37
 
38
  input_question =gr.inputs.Textbox(label="enter your monopoly question here")
 
32
  def predict(question):
33
  prediction = pipeline.run(question)
34
  answer = prediction["answers"]
35
+ faq_response = "FAQ Question: " + prediction["query"] + "\n"+"Answer: " + answer[0].answer
36
  return faq_response
37
 
38
  input_question =gr.inputs.Textbox(label="enter your monopoly question here")