eaglelandsonce commited on
Commit
c6eee8e
·
verified ·
1 Parent(s): c176392

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -308,13 +308,12 @@ with tab2:
308
  #st.set_page_config(Create Image and Audio Generator', layout='wide')
309
 
310
  # Streamlit sidebar elements
311
- st.title("Image-Audio Book")
312
- # text_block = st.sidebar.text_area("Enter your text block:")
313
 
314
  # Streamlit main page
315
  st.title('Images and Audio with Clarifai')
316
  if st.button("Generate Images and Audio"):
317
- sentence_chunks = split_text_into_sentences_and_chunks(st.session_state['text_block'], 8)
318
  prompts = [' '.join(chunk) for chunk in sentence_chunks]
319
  cols = st.columns(4)
320
  with st.spinner('Generating Content...'):
 
308
  #st.set_page_config(Create Image and Audio Generator', layout='wide')
309
 
310
  # Streamlit sidebar elements
311
+ text_block = st.text_area("Enter your text block:")
 
312
 
313
  # Streamlit main page
314
  st.title('Images and Audio with Clarifai')
315
  if st.button("Generate Images and Audio"):
316
+ sentence_chunks = split_text_into_sentences_and_chunks(text_block, 8)
317
  prompts = [' '.join(chunk) for chunk in sentence_chunks]
318
  cols = st.columns(4)
319
  with st.spinner('Generating Content...'):