mirror of
https://github.com/kaiyuran/Emoji-translator-Server.git
synced 2024-11-22 09:03:39 +00:00
Compare commits
6 commits
b8abf7f7d0
...
8790133b27
Author | SHA1 | Date | |
---|---|---|---|
|
8790133b27 | ||
|
289789326b | ||
|
66b64f4275 | ||
|
af4c33a21b | ||
|
0ab36ce8e1 | ||
|
533fc4a9bc |
2 changed files with 4 additions and 19 deletions
8
app.py
8
app.py
|
@ -200,14 +200,14 @@ def emojify(message):
|
||||||
return final
|
return final
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
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()
|
|
||||||
def get_random_emoji():
|
def get_random_emoji():
|
||||||
# Get the 'letter' parameter from the URL
|
# Get the 'letter' parameter from the URL
|
||||||
message = request.args.get('message')
|
message = request.args.get('message')
|
||||||
|
|
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