File size: 751 Bytes
61448a4
 
7987133
7ee7b26
af14fe8
7ee7b26
7987133
 
 
34d1458
af14fe8
7ee7b26
 
 
 
 
 
 
 
 
 
 
 
af14fe8
61448a4
 
 
7987133
7ee7b26
61448a4
af14fe8
61448a4
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import home
import text2image
import image2image
import visualization
import streamlit as st
import streamlit.components.v1 as components



st.set_page_config(layout="wide")

st.sidebar.title("WebPLIP")

components.html('''
    <!-- Google tag (gtag.js) -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-KPF04V95FN"></script>
    <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());
    gtag('config', 'G-KPF04V95FN');
    </script>
''')

PAGES = {
    "Introduction": home,
    "Text to Image": text2image,
    "Image to Image": image2image,
    "Visualization": visualization,
}

page = st.sidebar.radio("", list(PAGES.keys()))
PAGES[page].app()