From 0ab36ce8e124110d30d80493ba556bc33559a9c0 Mon Sep 17 00:00:00 2001 From: kaiyuran <73236245+kaiyuran@users.noreply.github.com> Date: Tue, 19 Nov 2024 13:21:37 -0500 Subject: [PATCH] Revert "not working" This reverts commit 533fc4a9bccaebfcc92f9c91d39755eefe4a8ff7. --- app.py | 5 +---- testGet.py | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/app.py b/app.py index f0a270b..2b0acbe 100644 --- a/app.py +++ b/app.py @@ -203,11 +203,8 @@ def emojify(message): app = Flask(__name__) CORS(app) -if __name__ == "__main__": - app.run(port=5000) - # if __name__ == "__main__": -# app.run(host='0.0.0.0', port=5501) +# app.run(port=5500) @app.route('/getemoji', methods=['GET']) # @cross_origin() diff --git a/testGet.py b/testGet.py index 214f8c9..53c168f 100644 --- a/testGet.py +++ b/testGet.py @@ -1,7 +1,7 @@ import requests -url = "http://127.0.0.1:5501/getemoji" -# url = "http://37.27.51.34:5501/getemoji" +url = "http://127.0.0.1:5000/getemoji" + params = { "message": "I love chocolate donuts. I laugh at funny jokes about it. I think it is amazing." }