Spaces:
Sleeping
Sleeping
Download app.py from moazzamdev/Chatbot-using-gemini: direct link, hf CLI and curl.
- Browser
- Download file 535 Bytes
-
https://huggingface.co/spaces/moazzamdev/Chatbot-using-gemini/resolve/3e275fdf0cf13dfc7bccd37bbd3af2fad033fdcd/app.py
- Command line
-
hf download hf://spaces/moazzamdev/Chatbot-using-gemini@3e275fdf0cf13dfc7bccd37bbd3af2fad033fdcd/app.py
-
curl -L -o app.py https://huggingface.co/spaces/moazzamdev/Chatbot-using-gemini/resolve/3e275fdf0cf13dfc7bccd37bbd3af2fad033fdcd/app.py
535 Bytes
| import streamlit as st | |
| from streamlit_option_menu import option_menu | |
| from page1 import text | |
| from page2 import image | |
| def main(): | |
| st.title("Chat With Gemini") | |
| with st.sidebar: | |
| selection = option_menu( | |
| menu_title="Main Menu", | |
| options=["Text Model", "Image Model"], | |
| icons=["pencil", "image"], | |
| menu_icon="cast", | |
| default_index=0 | |
| ) | |
| if selection == "Text Model": | |
| text() | |
| elif selection == "Image Model": | |
| image() | |
| if __name__ == '__main__': | |
| main() | |