Spaces:
Paused
Paused
Download app.py from ILLERRAPS/Multiplayer: direct link, hf CLI and curl.
- Browser
- Download file 385 Bytes
-
https://huggingface.co/spaces/ILLERRAPS/Multiplayer/resolve/main/app.py
- Command line
-
hf download hf://spaces/ILLERRAPS/Multiplayer/app.py
-
curl -L -o app.py https://huggingface.co/spaces/ILLERRAPS/Multiplayer/resolve/main/app.py
385 Bytes
| from flask import Flask, jsonify, request | |
| from game_logic import handle_command | |
| app = Flask(__name__) | |
| def command(): | |
| data = request.json | |
| username = data['username'] | |
| command = data['command'] | |
| result = handle_command(username, command) | |
| return jsonify({'result': result}) | |
| if __name__ == '__main__': | |
| app.run(debug=True) | |