Spaces:
Runtime error
Runtime error
File size: 918 Bytes
244fae2 |
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 |
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
if( hasattr(st.session_state, 'page') == False):
st.session_state.page = 0
if( hasattr(st.session_state, 'results') == False):
st.session_state.results = []
p1 = st.empty()
p2 = st.empty()
p3 = st.empty()
st.session_state.stop = False
st.session_state.progress = 0
st.session_state.regenerate = False
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()
if(st.session_state.page == 2):
p1.empty()
p2.empty()
with p3.container():
st.write("This 333")
startButton = st.button("S3")
if startButton:
st.session_state.page = 0
footer()
|