VinitT commited on
Commit
5db4df9
1 Parent(s): e4d4b77

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
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
- # 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()
 
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()