From fd034829bee46ed59836529dacaf746ba245e195 Mon Sep 17 00:00:00 2001 From: Joseph Cheung Date: Wed, 1 Mar 2023 13:38:03 +0800 Subject: [PATCH] o --- searx/webapp.py | 767 ++++++++++++++++++++++++++++++++++++++++++++++- searx/webapp1.py | 29 +- 2 files changed, 787 insertions(+), 9 deletions(-) diff --git a/searx/webapp.py b/searx/webapp.py index a6ebcecf3..5c48b4dbb 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -651,8 +651,8 @@ def health(): return Response('OK', mimetype='text/plain') -@app.route('/textrank', methods=['POST']) -def textrank(): +@app.route('/keytext', methods=['POST']) +def keytext(): res = [] text = request.json['text'] tr4s = TextRank4Sentence() @@ -1173,7 +1173,768 @@ const search_type = "''' + search_type + r'''" const net_search = ''' + net_search_str + r'''