Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -308,13 +308,12 @@ with tab2:
|
|
| 308 |
#st.set_page_config(Create Image and Audio Generator', layout='wide')
|
| 309 |
|
| 310 |
# Streamlit sidebar elements
|
| 311 |
-
st.
|
| 312 |
-
# text_block = st.sidebar.text_area("Enter your text block:")
|
| 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(
|
| 318 |
prompts = [' '.join(chunk) for chunk in sentence_chunks]
|
| 319 |
cols = st.columns(4)
|
| 320 |
with st.spinner('Generating Content...'):
|
|
|
|
| 308 |
#st.set_page_config(Create Image and Audio Generator', layout='wide')
|
| 309 |
|
| 310 |
# Streamlit sidebar elements
|
| 311 |
+
text_block = st.text_area("Enter your text block:")
|
|
|
|
| 312 |
|
| 313 |
# Streamlit main page
|
| 314 |
st.title('Images and Audio with Clarifai')
|
| 315 |
if st.button("Generate Images and Audio"):
|
| 316 |
+
sentence_chunks = split_text_into_sentences_and_chunks(text_block, 8)
|
| 317 |
prompts = [' '.join(chunk) for chunk in sentence_chunks]
|
| 318 |
cols = st.columns(4)
|
| 319 |
with st.spinner('Generating Content...'):
|