mirror of
https://github.com/kaiyuran/Emoji-translator-Server.git
synced 2024-11-22 09:03:39 +00:00
not working
This commit is contained in:
parent
b8abf7f7d0
commit
533fc4a9bc
2 changed files with 6 additions and 3 deletions
5
app.py
5
app.py
|
@ -203,8 +203,11 @@ def emojify(message):
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
CORS(app)
|
CORS(app)
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
app.run(port=5000)
|
||||||
|
|
||||||
# if __name__ == "__main__":
|
# if __name__ == "__main__":
|
||||||
# app.run(port=5500)
|
# app.run(host='0.0.0.0', port=5501)
|
||||||
|
|
||||||
@app.route('/getemoji', methods=['GET'])
|
@app.route('/getemoji', methods=['GET'])
|
||||||
# @cross_origin()
|
# @cross_origin()
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
url = "http://127.0.0.1:5000/getemoji"
|
url = "http://127.0.0.1:5501/getemoji"
|
||||||
|
# url = "http://37.27.51.34:5501/getemoji"
|
||||||
params = {
|
params = {
|
||||||
"message": "I love chocolate donuts. I laugh at funny jokes about it. I think it is amazing."
|
"message": "I love chocolate donuts. I laugh at funny jokes about it. I think it is amazing."
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue