eaglelandsonce commited on
Commit
cc607e2
·
verified ·
1 Parent(s): 1a554ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -300,7 +300,8 @@ with tab1:
300
  result = crewai_process(input_topic)
301
  # Display the result
302
  st.session_state['text_block'] = result
303
- st.text_area("Output", value=st.session_state['text_block'] , height=300)
 
304
 
305
  # Tab 2: Data Visualization
306
  with tab2:
@@ -309,12 +310,12 @@ with tab2:
309
  #st.set_page_config(Create Image and Audio Generator', layout='wide')
310
 
311
  # Streamlit sidebar elements
312
- st.text_area("Story",value = tab2var_textblock)
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(tab2var_textblock , 8)
318
  prompts = [' '.join(chunk) for chunk in sentence_chunks]
319
  cols = st.columns(4)
320
  with st.spinner('Generating Content...'):
 
300
  result = crewai_process(input_topic)
301
  # Display the result
302
  st.session_state['text_block'] = result
303
+
304
+ st.text_area("Output", value=result , height=300)
305
 
306
  # Tab 2: Data Visualization
307
  with tab2:
 
310
  #st.set_page_config(Create Image and Audio Generator', layout='wide')
311
 
312
  # Streamlit sidebar elements
313
+ story_result = st.text_area("Story",value = tab2var_textblock)
314
 
315
  # Streamlit main page
316
  # st.title('Images and Audio with Clarifai')
317
  if st.button("Generate Images and Audio"):
318
+ sentence_chunks = split_text_into_sentences_and_chunks(story_resul , 8)
319
  prompts = [' '.join(chunk) for chunk in sentence_chunks]
320
  cols = st.columns(4)
321
  with st.spinner('Generating Content...'):