webplip / app.py
huangzhii
new features added
9059a42
raw history blame
No virus
751 Bytes
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()