eaglelandsonce commited on
Commit
36e9fb3
1 Parent(s): 20563c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -306,13 +306,12 @@ with tab1:
306
  # Tab 2: Data Visualization
307
  with tab2:
308
 
309
- story_result = st.text_area("Story", key = "text_block")
310
 
311
  # Streamlit main page
312
 
313
  if st.button("Generate Images and Audio"):
314
 
315
- sentence_chunks = split_text_into_sentences_and_chunks(story_result , 8)
316
  prompts = [' '.join(chunk) for chunk in sentence_chunks]
317
  cols = st.columns(4)
318
  with st.spinner('Generating Content...'):
 
306
  # Tab 2: Data Visualization
307
  with tab2:
308
 
 
309
 
310
  # Streamlit main page
311
 
312
  if st.button("Generate Images and Audio"):
313
 
314
+ sentence_chunks = split_text_into_sentences_and_chunks(st.session_state.text_block , 8)
315
  prompts = [' '.join(chunk) for chunk in sentence_chunks]
316
  cols = st.columns(4)
317
  with st.spinner('Generating Content...'):