Update app.py
Browse files
app.py
CHANGED
@@ -301,7 +301,7 @@ with tab1:
|
|
301 |
# Display the result
|
302 |
st.session_state['text_block'] = result
|
303 |
|
304 |
-
st.text_area("Output",
|
305 |
|
306 |
# Tab 2: Data Visualization
|
307 |
with tab2:
|
@@ -310,8 +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 |
-
|
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)
|
|
|
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 = 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)
|