File size: 793 Bytes
fb96795
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
34
35
36
import streamlit as st
from src.page1 import page1
from src.page2 import page2
from src.page3 import page3
from src.page4 import page4
from src.page5 import page5
from src.page6 import page6
from src.page7 import page7
from src.page8 import page8
# import openai
import os
from dotenv import load_dotenv
load_dotenv()
st.set_page_config(layout="wide")


# openai.api_key = os.getenv("OPENAI_API_KEY")


pages = {
    # "Entry point": page1,
    # "Text to image": page2,
    # "Image variation": page3,
    # "Image edit": page4,
    "Text to Image":page5,
    "Image to Text": page6,
    "Image to Video":page7,
    "Text to Video": page8
    
}

# Create the selectbox in the sidebar
page = st.sidebar.selectbox("Select a page", list(pages.keys()))

# Display the selected page
pages[page]()