Update app.py
Browse files
app.py
CHANGED
@@ -297,7 +297,7 @@ with tab1:
|
|
297 |
# Run the crewai process
|
298 |
result = crewai_process(input_topic)
|
299 |
# Display the result
|
300 |
-
st.text_area("Output", value=result, height=300)
|
301 |
|
302 |
# Tab 2: Data Visualization
|
303 |
with tab2:
|
@@ -305,12 +305,12 @@ with tab2:
|
|
305 |
#st.set_page_config(Create Image and Audio Generator', layout='wide')
|
306 |
|
307 |
# Streamlit sidebar elements
|
308 |
-
st.
|
309 |
-
text_block = st.sidebar.text_area("Enter your text block:")
|
310 |
|
311 |
# Streamlit main page
|
312 |
st.title('Images and Audio with Clarifai')
|
313 |
-
if st.
|
314 |
sentence_chunks = split_text_into_sentences_and_chunks(text_block, 8)
|
315 |
prompts = [' '.join(chunk) for chunk in sentence_chunks]
|
316 |
cols = st.columns(4)
|
|
|
297 |
# Run the crewai process
|
298 |
result = crewai_process(input_topic)
|
299 |
# Display the result
|
300 |
+
text_block = st.text_area("Output", value=result, height=300)
|
301 |
|
302 |
# Tab 2: Data Visualization
|
303 |
with tab2:
|
|
|
305 |
#st.set_page_config(Create Image and Audio Generator', layout='wide')
|
306 |
|
307 |
# Streamlit sidebar elements
|
308 |
+
st.title("Image-Audio Book")
|
309 |
+
# text_block = st.sidebar.text_area("Enter your text block:")
|
310 |
|
311 |
# Streamlit main page
|
312 |
st.title('Images and Audio with Clarifai')
|
313 |
+
if st.button("Generate Images and Audio"):
|
314 |
sentence_chunks = split_text_into_sentences_and_chunks(text_block, 8)
|
315 |
prompts = [' '.join(chunk) for chunk in sentence_chunks]
|
316 |
cols = st.columns(4)
|