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', '
') return render_template('index.html', info=info) if __name__ == '__main__': app.run(host="0.0.0.0", port=7860)