Spaces:
Runtime error
Runtime error
| 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 | |
| from page5 import a1111 | |
| def main(): | |
| with st.sidebar: | |
| selection = option_menu( | |
| menu_title="ForgeStudio", | |
| options=["Home", "Vanilla Chat", "Chat with Image", "Image Creator", "AUTOMATIC1111"], | |
| icons=["house", "pencil", "chat", "image", "computer"], | |
| menu_icon="cast", | |
| default_index=0 | |
| ) | |
| if selection == "Home": | |
| details() | |
| elif selection == "Vanilla Chat": | |
| text() | |
| elif selection == "Chat with Image": | |
| image() | |
| elif selection == "Image Creator": | |
| sdxl() | |
| elif selection == "AUTOMATIC1111": | |
| a1111() | |
| if __name__ == '__main__': | |
| main() | |