File size: 1,028 Bytes
244fae2
 
 
 
 
130cb9f
244fae2
 
d1ba29f
 
 
a3cca2d
244fae2
38dd828
244fae2
 
 
 
130cb9f
38dd828
130cb9f
244fae2
 
 
 
 
 
 
130cb9f
d1ba29f
244fae2
 
130cb9f
 
a3cca2d
 
130cb9f
 
 
 
 
 
244fae2
 
 
 
 
 
 
 
 
 
 
 
130cb9f
244fae2
a3cca2d
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import streamlit as st
import pandas as pd
import numpy as np
import os, random, time
from utils import footer
from page import generate, reduce, intro


st.set_page_config(
        page_title="AI Architecture",
)

if( hasattr(st.session_state, 'page') == False):
    st.session_state.page = 2

if( hasattr(st.session_state, 'results') == False):
    st.session_state.results = []

if( hasattr(st.session_state, 'prompt') == False):
    st.session_state.prompt = None

p1 = st.empty()
p2 = st.empty()
p3 = st.empty()


st.session_state.stop = False
st.session_state.progress = 0
#st.session_state.prompt = None
st.session_state.images = []
st.session_state.regenerate = False



footer()

if(st.session_state.page == 2):
    p1.empty()
    p2.empty()
    with p3.container():
        intro.app()

if(st.session_state.page == 0):
    p2.empty()
    p3.empty()
    with p1.container():
        generate.app()
        
if(st.session_state.page == 1):
    p1.empty()
    p3.empty()
    with p2.container():
        reduce.app()