Spaces:
Running
Running
Commit
·
5e31be1
1
Parent(s):
bdcf240
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,9 @@ import streamlit as st
|
|
2 |
from streamlit_option_menu import option_menu
|
3 |
from page1 import text
|
4 |
from page2 import image
|
|
|
|
|
|
|
5 |
def main():
|
6 |
|
7 |
st.title("Chat With Gemini")
|
@@ -9,10 +12,10 @@ def main():
|
|
9 |
with st.sidebar:
|
10 |
selection = option_menu(
|
11 |
menu_title="Main Menu",
|
12 |
-
options=["Text Model", "Image Model"],
|
13 |
-
icons=["pencil", "image"],
|
14 |
menu_icon="cast",
|
15 |
-
default_index=
|
16 |
)
|
17 |
|
18 |
if selection == "Text Model":
|
@@ -21,6 +24,9 @@ def main():
|
|
21 |
elif selection == "Image Model":
|
22 |
image()
|
23 |
|
|
|
|
|
|
|
24 |
|
25 |
if __name__ == '__main__':
|
26 |
main()
|
|
|
2 |
from streamlit_option_menu import option_menu
|
3 |
from page1 import text
|
4 |
from page2 import image
|
5 |
+
from page3 import details
|
6 |
+
|
7 |
+
|
8 |
def main():
|
9 |
|
10 |
st.title("Chat With Gemini")
|
|
|
12 |
with st.sidebar:
|
13 |
selection = option_menu(
|
14 |
menu_title="Main Menu",
|
15 |
+
options=["About Gemini","Text Model", "Image Model"],
|
16 |
+
icons=["book","pencil", "image"],
|
17 |
menu_icon="cast",
|
18 |
+
default_index=1
|
19 |
)
|
20 |
|
21 |
if selection == "Text Model":
|
|
|
24 |
elif selection == "Image Model":
|
25 |
image()
|
26 |
|
27 |
+
elif selection == "About Gemini":
|
28 |
+
details()
|
29 |
+
|
30 |
|
31 |
if __name__ == '__main__':
|
32 |
main()
|