File size: 641 Bytes
61448a4
 
dc3cb2a
61448a4
 
 
 
 
 
 
 
dc3cb2a
 
7987133
dc3cb2a
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from pathlib import Path
import streamlit as st
import streamlit.components.v1 as components


def read_markdown_file(markdown_file):
    return Path(markdown_file).read_text()


def app():
    intro_markdown = read_markdown_file("introduction.md")
    st.markdown(intro_markdown, unsafe_allow_html=True)

    st.text('An example of tweet:')
    components.html('''
        <blockquote class="twitter-tweet">
            <a href="https://twitter.com/xxx/status/1580753362059788288"></a>
        </blockquote>
        <script async src="https://platform.twitter.com/widgets.js" charset="utf-8">
        </script>
        ''',
    height=600)