opencopilot / app.py
ehristoforu's picture
Upload 7 files
42c1e5a verified
raw
history blame
745 Bytes
import streamlit as st
from streamlit_option_menu import option_menu
from page1 import text
from page2 import image
from page3 import details
from page4 import sdxl
def main():
st.title("Chat With Gemini AI")
with st.sidebar:
selection = option_menu(
menu_title="Main Menu",
options=["Home", "Vanilla Chat", "Chat with Image", "Image Creator"],
icons=["home", "pencil", "bird", "image"],
menu_icon="cast",
default_index=1
)
if selection == "Vanilla Chat":
text()
elif selection == "Chat with Image":
image()
elif selection == "Image Creator":
sdxl()
elif selection == "Home":
details()
if __name__ == '__main__':
main()