Update app.py
Browse files
app.py
CHANGED
|
@@ -406,21 +406,21 @@ with tab1:
|
|
| 406 |
# Set up the Streamlit interface
|
| 407 |
col1, col2 = st.columns([1, 5])
|
| 408 |
|
| 409 |
-
|
| 410 |
-
|
| 411 |
-
|
| 412 |
-
|
| 413 |
-
|
| 414 |
-
|
| 415 |
-
|
| 416 |
-
|
| 417 |
-
|
| 418 |
-
|
| 419 |
-
|
| 420 |
-
|
| 421 |
-
|
| 422 |
-
|
| 423 |
-
|
| 424 |
|
| 425 |
# Tab 2: Data Visualization
|
| 426 |
with tab2:
|
|
|
|
| 406 |
# Set up the Streamlit interface
|
| 407 |
col1, col2 = st.columns([1, 5])
|
| 408 |
|
| 409 |
+
with col1:
|
| 410 |
+
st.image('crewai/resouces/whale.jpg')
|
| 411 |
+
|
| 412 |
+
with col2:
|
| 413 |
+
# Input for the user
|
| 414 |
+
input_topic = st.text_area("Input Topic", height=100, placeholder="Input Topic...")
|
| 415 |
+
st.session_state['on_topic'] = input_topic
|
| 416 |
+
# Button to run the process
|
| 417 |
+
if st.button("Create a Story"):
|
| 418 |
+
# Run the crewai process
|
| 419 |
+
with st.spinner('Generating Content...'):
|
| 420 |
+
result = crewai_process(input_topic)
|
| 421 |
+
# Display the result
|
| 422 |
+
st.session_state['text_block'] = result
|
| 423 |
+
st.text_area("Output", value=result , height=300)
|
| 424 |
|
| 425 |
# Tab 2: Data Visualization
|
| 426 |
with tab2:
|