File size: 645 Bytes
f4bec4e
 
 
 
5e31be1
 
 
f4bec4e
 
5dcf548
f4bec4e
 
 
 
5e31be1
 
f4bec4e
5e31be1
f4bec4e
 
 
 
 
 
 
 
5e31be1
 
 
f4bec4e
 
 
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
import streamlit as st
from streamlit_option_menu import option_menu
from page1 import text
from page2 import image
from page3 import details


def main():

    st.title("Chat With Gemini AI")

    with st.sidebar:
        selection = option_menu(
        menu_title="Main Menu",
        options=["About Gemini","Text Model", "Image Model"],
        icons=["book","pencil", "image"],
        menu_icon="cast",
        default_index=1
        )

    if selection == "Text Model":
        text()

    elif selection == "Image Model":
        image()

    elif selection == "About Gemini":
        details()


if __name__ == '__main__':
    main()