Spaces:
Sleeping
Sleeping
File size: 310 Bytes
7ecf241 db6e2f8 7ecf241 db6e2f8 7ecf241 51eabf2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def display_info():
with open('info.txt', 'r') as file:
info = file.read().replace('\n', '<br>')
return render_template('index.html', info=info)
if __name__ == '__main__':
app.run(host="0.0.0.0", port=7860)
|