File size: 395 Bytes
b966bc9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from meutils.pipe import *
from appzoo.streamlit_app import Page

import streamlit as st
from streamlit.components.v1 import html, iframe


class MyPage(Page):

    def main(self):
        text = ""
        with open("./data/x.html") as fp:  # 如果遇到decode错误,就加上合适的encoding
            text = fp.read()
        html(text)


if __name__ == '__main__':
    MyPage().main()