Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 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("Gemini 2.0 Thinking Experimental")
|
| 11 |
+
|
| 12 |
+
with st.sidebar:
|
| 13 |
+
selection = option_menu(
|
| 14 |
+
menu_title="Main Menu",
|
| 15 |
+
options=["About Gemini","Text + Image Queries", "Image Generation"],
|
| 16 |
+
icons=["book","pencil", "image"],
|
| 17 |
+
menu_icon="cast",
|
| 18 |
+
default_index=1
|
| 19 |
+
)
|
| 20 |
+
|
| 21 |
+
if selection == "Text + Image Queries":
|
| 22 |
+
text()
|
| 23 |
+
|
| 24 |
+
elif selection == "Image Generation":
|
| 25 |
+
image()
|
| 26 |
+
|
| 27 |
+
elif selection == "About Gemini":
|
| 28 |
+
details()
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
if __name__ == '__main__':
|
| 32 |
+
main()
|