Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -121,15 +121,15 @@ def main():
|
|
121 |
# Store descriptions in session state
|
122 |
st.session_state["all_output_texts"] = all_output_texts
|
123 |
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
|
134 |
if __name__ == "__main__":
|
135 |
main()
|
|
|
121 |
# Store descriptions in session state
|
122 |
st.session_state["all_output_texts"] = all_output_texts
|
123 |
|
124 |
+
# Check if descriptions are available in session state
|
125 |
+
if "all_output_texts" in st.session_state and st.session_state["all_output_texts"]:
|
126 |
+
st.write("Generate story")
|
127 |
+
generate_story_button = st.button("Generate Story", key="generate_story")
|
128 |
+
|
129 |
+
if generate_story_button:
|
130 |
+
story = generate_story(st.session_state["all_output_texts"])
|
131 |
+
st.write("Generated Story:")
|
132 |
+
st.write(story)
|
133 |
|
134 |
if __name__ == "__main__":
|
135 |
main()
|