trying other ports

This commit is contained in:
kaiyuran 2024-11-16 00:02:39 -05:00
parent 0d02124115
commit d0d8761377
2 changed files with 18 additions and 0 deletions

3
app.py
View file

@ -207,6 +207,9 @@ def emojify(message):
app = Flask(__name__)
CORS(app)
if __name__ == "__main__":
app.run(port=5500)
@app.route('/getemoji', methods=['GET'])
# @cross_origin()
def get_random_emoji():

15
shell.nix Normal file
View file

@ -0,0 +1,15 @@
with import <nixpkgs> {};
mkShell {
buildInputs = [
python3
python3Packages.flask
python3Packages.flask-cors
python3Packages.gunicorn
];
shellHook = ''
export LANG=C.UTF-8
export LC_ALL=C.UTF-8
'';
}