eaglelandsonce commited on
Commit
645ee31
1 Parent(s): fd41e35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -276,7 +276,7 @@ def crewai_process(research_topic):
276
 
277
  return result
278
 
279
- if 'my_variable' not in st.session_state:
280
  st.session_state['text_block'] = ''
281
 
282
  st.set_page_config(page_title='Clarifai Story Teller', layout='wide')
@@ -301,7 +301,7 @@ with tab1:
301
  # Display the result
302
  st.session_state['text_block'] = result
303
 
304
- st.text_area("Output", key=text_block , height=300)
305
 
306
  # Tab 2: Data Visualization
307
  with tab2:
@@ -310,7 +310,7 @@ with tab2:
310
  # Streamlit main page
311
  # st.title('Images and Audio with Clarifai')
312
  if st.sidebar.button("Generate Images and Audio"):
313
- story_result = st.sidebar.text_area("Story", key = textblock)
314
  sentence_chunks = split_text_into_sentences_and_chunks(story_result , 8)
315
  prompts = [' '.join(chunk) for chunk in sentence_chunks]
316
  cols = st.columns(4)
 
276
 
277
  return result
278
 
279
+ if 'text_block' not in st.session_state:
280
  st.session_state['text_block'] = ''
281
 
282
  st.set_page_config(page_title='Clarifai Story Teller', layout='wide')
 
301
  # Display the result
302
  st.session_state['text_block'] = result
303
 
304
+ st.text_area("Output", key="text_block" , height=300)
305
 
306
  # Tab 2: Data Visualization
307
  with tab2:
 
310
  # Streamlit main page
311
  # st.title('Images and Audio with Clarifai')
312
  if st.sidebar.button("Generate Images and Audio"):
313
+ story_result = st.sidebar.text_area("Story", key = "text_block")
314
  sentence_chunks = split_text_into_sentences_and_chunks(story_result , 8)
315
  prompts = [' '.join(chunk) for chunk in sentence_chunks]
316
  cols = st.columns(4)