Update app.py
Browse files
app.py
CHANGED
|
@@ -285,7 +285,7 @@ import streamlit as st
|
|
| 285 |
|
| 286 |
# Create tabs
|
| 287 |
tab1, tab2, tab3 = st.tabs(["Create Your Story Script", "Build Your Image-Audio Book", "Interact with Your Charaters"])
|
| 288 |
-
|
| 289 |
# Tab 1: Introduction
|
| 290 |
with tab1:
|
| 291 |
# Set up the Streamlit interface
|
|
@@ -305,14 +305,14 @@ with tab1:
|
|
| 305 |
# Tab 2: Data Visualization
|
| 306 |
with tab2:
|
| 307 |
# Streamlit page configuration
|
| 308 |
-
#st.set_page_config(
|
| 309 |
|
| 310 |
# Streamlit sidebar elements
|
| 311 |
st.sidebar.title("Image-Audio Book")
|
| 312 |
text_block = st.sidebar.text_area("Enter your text block:")
|
| 313 |
|
| 314 |
# Streamlit main page
|
| 315 |
-
st.title('
|
| 316 |
if st.sidebar.button("Generate Images and Audio"):
|
| 317 |
sentence_chunks = split_text_into_sentences_and_chunks(text_block, 8)
|
| 318 |
prompts = [' '.join(chunk) for chunk in sentence_chunks]
|
|
|
|
| 285 |
|
| 286 |
# Create tabs
|
| 287 |
tab1, tab2, tab3 = st.tabs(["Create Your Story Script", "Build Your Image-Audio Book", "Interact with Your Charaters"])
|
| 288 |
+
st.set_page_config(page_title='Clarifai Story Teller', layout='wide')
|
| 289 |
# Tab 1: Introduction
|
| 290 |
with tab1:
|
| 291 |
# Set up the Streamlit interface
|
|
|
|
| 305 |
# Tab 2: Data Visualization
|
| 306 |
with tab2:
|
| 307 |
# Streamlit page configuration
|
| 308 |
+
#st.set_page_config(Create Image and Audio Generator', layout='wide')
|
| 309 |
|
| 310 |
# Streamlit sidebar elements
|
| 311 |
st.sidebar.title("Image-Audio Book")
|
| 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.sidebar.button("Generate Images and Audio"):
|
| 317 |
sentence_chunks = split_text_into_sentences_and_chunks(text_block, 8)
|
| 318 |
prompts = [' '.join(chunk) for chunk in sentence_chunks]
|