Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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")
|