Update app.py
Browse files
app.py
CHANGED
|
@@ -306,11 +306,12 @@ with tab1:
|
|
| 306 |
# Tab 2: Data Visualization
|
| 307 |
with tab2:
|
| 308 |
|
|
|
|
| 309 |
|
| 310 |
# Streamlit main page
|
| 311 |
-
|
| 312 |
-
if st.
|
| 313 |
-
|
| 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)
|
|
|
|
| 306 |
# Tab 2: Data Visualization
|
| 307 |
with tab2:
|
| 308 |
|
| 309 |
+
story_result = text_area("Story", key = "text_block")
|
| 310 |
|
| 311 |
# Streamlit main page
|
| 312 |
+
|
| 313 |
+
if st.button("Generate Images and Audio"):
|
| 314 |
+
|
| 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)
|