Spaces:
Sleeping
Sleeping
| from flask import Flask, jsonify, render_template, request | |
| app = Flask(__name__) | |
| def home(): | |
| return render_template('index.html') | |
| def health(): | |
| return jsonify({"status": "ok"}) | |
| def action1(): | |
| return jsonify({"result": "You clicked Button 1!"}) | |
| def action2(): | |
| return jsonify({"result": "You clicked Button 2!"}) | |
| if __name__ == '__main__': | |
| app.run(host='0.0.0.0', port=5000, debug=True) |