Display the contents of a text file within iframe in a html page rendered via flask web server
An iframe is literally just another page contained within an element on your page. So your main page would just do:
<iframe src ="/stream"></iframe>
and that's it.