KrSharangrav commited on
Commit
a51be6a
·
1 Parent(s): 7268351

header push

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -10,21 +10,21 @@ insert_data_if_empty()
10
  collection = get_mongo_client()
11
 
12
  #### **3. Streamlit App UI**
13
- st.title("📊 MongoDB Data Viewer with AI Sentiment Chatbot")
14
 
15
  # Show first 5 rows from MongoDB
16
- st.subheader("First 5 Rows from Database")
17
- data = list(collection.find({}, {"_id": 0}).limit(5))
18
 
19
- if data:
20
- st.write(pd.DataFrame(data))
21
- else:
22
- st.warning("⚠️ No data found. Try refreshing the app.")
23
 
24
  # Button to show full MongoDB data
25
- if st.button("Show Complete Data"):
26
- all_data = list(collection.find({}, {"_id": 0}))
27
- st.write(pd.DataFrame(all_data))
28
 
29
  #### **4. AI Chatbot with Sentiment Analysis**
30
  st.subheader("🤖 AI Chatbot with Sentiment Analysis")
 
10
  collection = get_mongo_client()
11
 
12
  #### **3. Streamlit App UI**
13
+ st.title("📊 AI Sentiment Analysis Chatbot")
14
 
15
  # Show first 5 rows from MongoDB
16
+ #st.subheader("First 5 Rows from Database")
17
+ #data = list(collection.find({}, {"_id": 0}).limit(5))
18
 
19
+ #if data:
20
+ # st.write(pd.DataFrame(data))
21
+ #else:
22
+ # st.warning("⚠️ No data found. Try refreshing the app.")
23
 
24
  # Button to show full MongoDB data
25
+ #if st.button("Show Complete Data"):
26
+ # all_data = list(collection.find({}, {"_id": 0}))
27
+ # st.write(pd.DataFrame(all_data))
28
 
29
  #### **4. AI Chatbot with Sentiment Analysis**
30
  st.subheader("🤖 AI Chatbot with Sentiment Analysis")