|
@@ -5,6 +5,7 @@ import json
|
|
|
|
|
|
import aiohttp
|
|
|
from applications.articleTools import ArticleDBTools
|
|
|
+from applications.config import port
|
|
|
|
|
|
|
|
|
class AccountServer(object):
|
|
@@ -28,7 +29,7 @@ class AccountServer(object):
|
|
|
nlp process
|
|
|
"""
|
|
|
headers = {"Content-Type": "application/json"}
|
|
|
- url = "http://localhost:6060/nlp"
|
|
|
+ url = "http://localhost:{}/nlp".format(port)
|
|
|
body = {
|
|
|
"data": {
|
|
|
"text_list_a": [i.replace("'", "") for i in title_list],
|