webplip / app.py
vinid's picture
Update app.py
6cb0e6e
raw
history blame contribute delete
728 Bytes
import home
import text2image
import image2image
import visualization
import streamlit as st
import details
st.set_page_config(layout="wide")
st.sidebar.title("WebPLIP")
st.sidebar.markdown("## Menu")
PAGES = {
"Introduction": home,
"Details": details,
"Text to Image": text2image,
"Image to Image": image2image,
"Visualization": visualization,
}
page = st.sidebar.radio("", list(PAGES.keys()))
st.sidebar.markdown("## Links")
st.sidebar.markdown("[PLIP Model](https://huggingface.co./vinid/plip)")
st.sidebar.markdown("[OpenPath Dataset](https://drive.google.com/drive/folders/1b5UT8BzUphkHZavRG-fmiyY9JWYIWZER)")
st.sidebar.markdown("[PLIP Code](https://github.com/vinid/path_eval)")
PAGES[page].app()