mirror of
https://github.com/kaiyuran/Emoji-translator-Server.git
synced 2024-11-22 00:53:39 +00:00
Compare commits
No commits in common. "8790133b2770aa34c0aadc7f0a6782d8e9a39ffa" and "b8abf7f7d07fe43c6f02bd360f57904000b06eea" have entirely different histories.
8790133b27
...
b8abf7f7d0
2 changed files with 19 additions and 4 deletions
8
app.py
8
app.py
|
@ -200,14 +200,14 @@ def emojify(message):
|
|||
return final
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
app = Flask(__name__)
|
||||
CORS(app)
|
||||
|
||||
# if __name__ == "__main__":
|
||||
# app.run(port=5500)
|
||||
|
||||
@app.route('/getemoji', methods=['GET'])
|
||||
# @cross_origin()
|
||||
def get_random_emoji():
|
||||
# Get the 'letter' parameter from the URL
|
||||
message = request.args.get('message')
|
||||
|
|
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