Update app.py
Browse files
app.py
CHANGED
@@ -305,16 +305,13 @@ with tab1:
|
|
305 |
|
306 |
# Tab 2: Data Visualization
|
307 |
with tab2:
|
308 |
-
|
309 |
-
# Streamlit page configuration
|
310 |
-
#st.set_page_config(Create Image and Audio Generator', layout='wide')
|
311 |
-
|
312 |
-
# Streamlit sidebar elements
|
313 |
-
story_result = st.sidebar.text_area("Story",value = tab2var_textblock)
|
314 |
|
315 |
# Streamlit main page
|
316 |
# st.title('Images and Audio with Clarifai')
|
317 |
if st.sidebar.button("Generate Images and Audio"):
|
|
|
|
|
318 |
sentence_chunks = split_text_into_sentences_and_chunks(story_result , 8)
|
319 |
prompts = [' '.join(chunk) for chunk in sentence_chunks]
|
320 |
cols = st.columns(4)
|
|
|
305 |
|
306 |
# Tab 2: Data Visualization
|
307 |
with tab2:
|
308 |
+
|
|
|
|
|
|
|
|
|
|
|
309 |
|
310 |
# Streamlit main page
|
311 |
# st.title('Images and Audio with Clarifai')
|
312 |
if st.sidebar.button("Generate Images and Audio"):
|
313 |
+
tab2var_textblock = st.session_state['text_block']
|
314 |
+
story_result = st.sidebar.text_area("Story",value = tab2var_textblock)
|
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)
|