eaglelandsonce commited on
Commit
bac2d1e
1 Parent(s): a0baf1a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +33 -10
app.py CHANGED
@@ -193,17 +193,40 @@ def crewai_process(research_topic):
193
  return result
194
 
195
 
196
- # Set up the Streamlit interface
197
- st.markdown(TITLE1, unsafe_allow_html=True)
198
 
199
 
200
- # Input for the user
201
- input_topic = st.text_area("Input Topic", height=100, placeholder="Input Topic...")
202
 
203
- # Button to run the process
204
- if st.button("Run"):
205
- # Run the crewai process
206
- result = crewai_process(input_topic)
207
- # Display the result
208
- st.text_area("Output", value=result, height=300)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
209
 
 
193
  return result
194
 
195
 
 
 
196
 
197
 
 
 
198
 
199
+
200
+ import streamlit as st
201
+
202
+ # Create tabs
203
+ tab1, tab2, tab3 = st.tabs(["Create Your Story", "Data Visualization", "User Input and Results"])
204
+
205
+ # Tab 1: Introduction
206
+ with tab1:
207
+ # Set up the Streamlit interface
208
+ st.markdown(TITLE1, unsafe_allow_html=True)
209
+
210
+
211
+ # Input for the user
212
+ input_topic = st.text_area("Input Topic", height=100, placeholder="Input Topic...")
213
+
214
+ # Button to run the process
215
+ if st.button("Run"):
216
+ # Run the crewai process
217
+ result = crewai_process(input_topic)
218
+ # Display the result
219
+ st.text_area("Output", value=result, height=300)
220
+
221
+ # Tab 2: Data Visualization
222
+ with tab2:
223
+ st.header("Data Visualization")
224
+ st.write("Charts and graphs will be displayed here.")
225
+
226
+ # Tab 3: User Input and Results
227
+ with tab3:
228
+ st.header("Interactive User Input")
229
+ user_input = st.text_input("Enter some information")
230
+ st.write(f"You entered: {user_input}")
231
+
232