tanish78 commited on
Commit
e8c4d5a
·
verified ·
1 Parent(s): 5766909

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -11,7 +11,7 @@ import plotly.express as px
11
  from PIL import Image
12
 
13
  categories_keywords = {
14
- "Application Status": ["application status", "application", "status", "submitted", "processing", "pending", "approval", "rejected", "accepted"],
15
  "Follow-Ups": ['update', 'updates', 'any updates', 'any news', 'response from you', 'any reply'],
16
  "Firki": ['firki'],
17
  "Interviews": ['interview', 'set up interview', 'phone interview'],
@@ -26,8 +26,7 @@ categories_keywords = {
26
  "Timing and Scheduling": ["timing", "schedule", "scheduling", "time", "appointment", "availability", "calendar", "book", "slot"],
27
  "Salary and Benefits": ["salary", "benefits", "pay", "compensation", "wages", "earnings", "package", "remuneration", "incentives"],
28
  "Technical Issues": ["technical", "issue", "problem", "error", "bug", "glitch", "fix", "troubleshoot", "support"],
29
- "End of Conversation": ["bye", "thank you", "thanks", "goodbye", "see you", "later", "end", "close", "sign off"],
30
- "Start of Conversation": ["start", "begin", "hello", "hi", "initiate", "good morning", "help", "open", "commence", 'please help', 'good evening'],
31
  "Feedback": ["feedback", "comments", "review", "opinion", "suggestion", "critique", "rating"],
32
  "Event Inquiries": ["event", "webinar", "meeting", "conference", "session", "seminar", "workshop", "invitation"],
33
  "Payment Issues": ["payment", "billing", "transaction", "charge", "fee", "invoice", "refund", "receipt"],
@@ -44,7 +43,7 @@ def categorize_question(question):
44
  words = question.split()
45
 
46
  # List of words to exclude from 'End of Conversation'
47
- exclusion_words = {'is', 'please', 'not', 'resolved', 'problem', 'help', 'issue', 'webinar', 'office', 'leave', 'approved', 'notice', 'period'}
48
 
49
  # Check if the question has only one word
50
  if len(words) == 1:
 
11
  from PIL import Image
12
 
13
  categories_keywords = {
14
+ "Application Status": ["application status", "application", "status", "submitted", "processing", "pending", "approval", "rejected", "accepted", "apply", "how to apply", "can I apply"],
15
  "Follow-Ups": ['update', 'updates', 'any updates', 'any news', 'response from you', 'any reply'],
16
  "Firki": ['firki'],
17
  "Interviews": ['interview', 'set up interview', 'phone interview'],
 
26
  "Timing and Scheduling": ["timing", "schedule", "scheduling", "time", "appointment", "availability", "calendar", "book", "slot"],
27
  "Salary and Benefits": ["salary", "benefits", "pay", "compensation", "wages", "earnings", "package", "remuneration", "incentives"],
28
  "Technical Issues": ["technical", "issue", "problem", "error", "bug", "glitch", "fix", "troubleshoot", "support"],
29
+ "End of Conversation": ["bye", "thank you", "thanks", "goodbye", "end conversation"],
 
30
  "Feedback": ["feedback", "comments", "review", "opinion", "suggestion", "critique", "rating"],
31
  "Event Inquiries": ["event", "webinar", "meeting", "conference", "session", "seminar", "workshop", "invitation"],
32
  "Payment Issues": ["payment", "billing", "transaction", "charge", "fee", "invoice", "refund", "receipt"],
 
43
  words = question.split()
44
 
45
  # List of words to exclude from 'End of Conversation'
46
+ exclusion_words = {'is', 'please', 'not resolved', 'unresolved', 'problem', 'help', 'issue', 'webinar', 'office', 'leave', 'approved', 'notice', 'period', 'good morning'}
47
 
48
  # Check if the question has only one word
49
  if len(words) == 1: