mirror of
https://github.com/kaiyuran/Emoji-translator-Server.git
synced 2024-11-25 02:23:40 +00:00
trying other ports
This commit is contained in:
parent
0d02124115
commit
d0d8761377
2 changed files with 18 additions and 0 deletions
3
app.py
3
app.py
|
@ -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
15
shell.nix
Normal 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
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue