Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -58,7 +58,7 @@ def process_json():
|
|
58 |
if (content_type == 'application/json'):
|
59 |
|
60 |
userQuery = request.get_json()['query']
|
61 |
-
responseJSON=chain({"
|
62 |
pretty_print_docs(response['source_documents'])
|
63 |
print("Ques:>>>>"+userQuery+"\n Ans:>>>"+responseJSON["result"])
|
64 |
return jsonify(botMessage=responseJSON["result"]);
|
|
|
58 |
if (content_type == 'application/json'):
|
59 |
|
60 |
userQuery = request.get_json()['query']
|
61 |
+
responseJSON=chain({"query":userQuery});
|
62 |
pretty_print_docs(response['source_documents'])
|
63 |
print("Ques:>>>>"+userQuery+"\n Ans:>>>"+responseJSON["result"])
|
64 |
return jsonify(botMessage=responseJSON["result"]);
|