Spaces:
Sleeping
Sleeping
File size: 271 Bytes
030fb97 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
from flask import Flask
app = Flask(__name__)
@app.route('/')
def home():
return 'Hello, this is the homepage!'
@app.route('/hello')
def hello():
return 'Hello from the custom route "/hello"!'
if __name__ == '__main__':
app.run(host='0.0.0.0', port=5000)
|