iSushant commited on
Commit
d058895
·
verified ·
1 Parent(s): d3c8477

Upload 5 files

Browse files
Learner_feedback_sentiment_analysis.ipynb ADDED
The diff for this file is too large to render. See raw diff
 
app.py ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import pandas as pd
2
+ import pickle as pk
3
+ from sklearn.feature_extraction.text import TfidfVectorizer
4
+ import streamlit as st
5
+
6
+ model = pk.load(open('model.pkl','rb'))
7
+ scaler = pk.load(open('scaler.pkl','rb'))
8
+ review = st.text_input('Tell Us What You Think! Your feedback helps us improve.')
9
+
10
+ if st.button('Let me think!'):
11
+ review_scale = scaler.transform([review]).toarray()
12
+ result = model.predict(review_scale)
13
+ if result[0] == 0:
14
+ st.write("Thanks for your honest feedback! We are always striving to improve. While your experience wasn't perfect, your insights help us make things better. Would you like to chat with our friendly AI assistant and share some suggestions?")
15
+
16
+
17
+ else:
18
+ st.write("We're thrilled to hear you had a positive experience! Your feedback motivates us to keep building something great. How about taking your interaction a step further and exploring our AI assistant to see what innovative things we can do together?")
19
+
20
+
21
+ if st.button('AI Pal'):
22
+
23
+
24
+ chatbot_link = "https://your_chatbot_url" # Replace with your actual chatbot URL
25
+ st.button("Hey! My Friendo", on_click=lambda: st.sidebar.open(chatbot_link))
26
+
27
+
learner_feedback.csv ADDED
The diff for this file is too large to render. See raw diff
 
model.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96350135a3707b04b600dcbc524d4fa41c35aca5a98ae814b691d1e54a6b286f
3
+ size 20720
scaler.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f3e948e8c9eca91c30bfc406ccde975678a759dfcff0f49d1854193de8a2c656
3
+ size 90779