mirror of
https://github.com/kaiyuran/Emoji-translator-Server.git
synced 2024-11-22 00:53:39 +00:00
parent
af4c33a21b
commit
66b64f4275
2 changed files with 0 additions and 18 deletions
3
app.py
3
app.py
|
@ -207,9 +207,6 @@ def emojify(message):
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
CORS(app)
|
CORS(app)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
app.run(port=5500)
|
|
||||||
|
|
||||||
@app.route('/getemoji', methods=['GET'])
|
@app.route('/getemoji', methods=['GET'])
|
||||||
# @cross_origin()
|
# @cross_origin()
|
||||||
def get_random_emoji():
|
def get_random_emoji():
|
||||||
|
|
15
shell.nix
15
shell.nix
|
@ -1,15 +0,0 @@
|
||||||
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