Commit 7fbbd175 by 高宇强

gyq

parent bdcc2b8d
...@@ -25,6 +25,8 @@ from flask_cors import CORS ...@@ -25,6 +25,8 @@ from flask_cors import CORS
from wordcloud import WordCloud from wordcloud import WordCloud
app = flask.Flask(__name__) app = flask.Flask(__name__)
interface_path = os.path.dirname(__file__)
sys.path.insert(0, interface_path) # 将当前文件的父目录加入临时系统变量
CORS(app, supports_credentials=True) CORS(app, supports_credentials=True)
app.config['JSON_AS_ASCII'] = False app.config['JSON_AS_ASCII'] = False
#esip = "43.247.184.94" #esip = "43.247.184.94"
...@@ -1239,7 +1241,7 @@ def PatentDocApi(): ...@@ -1239,7 +1241,7 @@ def PatentDocApi():
if __name__ == '__main__': if __name__ == '__main__':
#app.run(host='127.0.0.1', port=5000, debug=True) #app.run(host='127.0.0.1', port=5000, debug=True)
app.run(host='172.16.18.120', port=9500, debug=True) app.run(host='0.0.0.0', port=80, debug=True)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment