Spaces:
Runtime error
Runtime error
Update page/generate.py
Browse files- page/generate.py +11 -22
page/generate.py
CHANGED
@@ -14,11 +14,12 @@ mode = "ai"
|
|
14 |
#mode = "dummy"
|
15 |
|
16 |
def app():
|
17 |
-
|
18 |
-
|
19 |
|
20 |
st.title('AI-Generated Architecture')
|
21 |
|
|
|
|
|
22 |
st.subheader('Describe a building, interior, or other architecture you would like to see.')
|
23 |
|
24 |
#Modern architecture museum with black brick and large windows.
|
@@ -48,13 +49,9 @@ def app():
|
|
48 |
|
49 |
already = []
|
50 |
|
51 |
-
print("-0-")
|
52 |
-
|
53 |
if startButton or hasattr(st.session_state, 'load_state'):
|
54 |
|
55 |
-
with st.spinner("Generating..."):
|
56 |
-
|
57 |
-
print("-1-")
|
58 |
|
59 |
holder.empty()
|
60 |
|
@@ -64,12 +61,13 @@ def app():
|
|
64 |
placeholder = st.empty()
|
65 |
second = st.empty()
|
66 |
|
67 |
-
with second.container():
|
68 |
-
|
69 |
|
70 |
-
while len(st.session_state.results) <=
|
71 |
|
72 |
-
|
|
|
73 |
|
74 |
with placeholder.container():
|
75 |
|
@@ -80,18 +78,9 @@ def app():
|
|
80 |
st.session_state.page = 1
|
81 |
break
|
82 |
|
83 |
-
generate(prompt,crazy,k)
|
84 |
-
|
85 |
-
with second.container():
|
86 |
-
drawGrid()
|
87 |
-
|
88 |
-
|
89 |
|
|
|
90 |
|
91 |
-
#placeholder.empty()
|
92 |
|
93 |
-
#st.session_state.bar = placeholder.progress(0)
|
94 |
-
#drawGrid(placeholder)
|
95 |
-
|
96 |
|
97 |
-
|
|
|
14 |
#mode = "dummy"
|
15 |
|
16 |
def app():
|
17 |
+
|
|
|
18 |
|
19 |
st.title('AI-Generated Architecture')
|
20 |
|
21 |
+
st.subheader('(beta v1.0)')
|
22 |
+
|
23 |
st.subheader('Describe a building, interior, or other architecture you would like to see.')
|
24 |
|
25 |
#Modern architecture museum with black brick and large windows.
|
|
|
49 |
|
50 |
already = []
|
51 |
|
|
|
|
|
52 |
if startButton or hasattr(st.session_state, 'load_state'):
|
53 |
|
54 |
+
with st.spinner("Generating..."):
|
|
|
|
|
55 |
|
56 |
holder.empty()
|
57 |
|
|
|
61 |
placeholder = st.empty()
|
62 |
second = st.empty()
|
63 |
|
64 |
+
#with second.container():
|
65 |
+
# drawGrid()
|
66 |
|
67 |
+
while len(st.session_state.results) <= 64:
|
68 |
|
69 |
+
with second.container():
|
70 |
+
drawGrid()
|
71 |
|
72 |
with placeholder.container():
|
73 |
|
|
|
78 |
st.session_state.page = 1
|
79 |
break
|
80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
|
82 |
+
generate( prompt ,crazy,k)
|
83 |
|
|
|
84 |
|
|
|
|
|
|
|
85 |
|
86 |
+
st.session_state.bar = st.container()
|