eaglelandsonce commited on
Commit
e427d42
·
verified ·
1 Parent(s): 3ce35b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -12
app.py CHANGED
@@ -404,20 +404,23 @@ tab1, tab2, tab3 = st.tabs(["Create Your Story Script", "Build Your Image-Audio
404
  # Tab 1: Introduction
405
  with tab1:
406
  # Set up the Streamlit interface
 
407
 
 
 
408
 
409
-
410
- # Input for the user
411
- input_topic = st.text_area("Input Topic", height=100, placeholder="Input Topic...")
412
- st.session_state['on_topic'] = input_topic
413
- # Button to run the process
414
- if st.button("Run"):
415
- # Run the crewai process
416
- with st.spinner('Generating Content...'):
417
- result = crewai_process(input_topic)
418
- # Display the result
419
- st.session_state['text_block'] = result
420
- st.text_area("Output", value=result , height=300)
421
 
422
  # Tab 2: Data Visualization
423
  with tab2:
 
404
  # Tab 1: Introduction
405
  with tab1:
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: