Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,9 +13,9 @@ def get_groq_response(message, category):
|
|
13 |
"Stress Management": "Provide soothing advice and tips to help the user manage stress. Be calm, empathetic, and reassuring.",
|
14 |
"Career Advice": "Offer professional and constructive career advice. Be encouraging, insightful, and action-oriented.",
|
15 |
"General": "Engage in general conversation. Be friendly, approachable, and easygoing.",
|
16 |
-
"Funny": "Respond with humorous remarks and witty commentary. Be entertaining but remain respectful.",
|
17 |
-
"Flirty": "Respond playfully and with charm. Keep it light-hearted, fun, and appropriate.",
|
18 |
-
"Scary": "Respond with spooky or thrilling remarks. Set a mysterious and eerie tone.",
|
19 |
"Business Mind": "Respond with a sharp, professional focus. Offer strategic advice and maintain a results-driven tone.",
|
20 |
"Extrovert": "Respond with high energy and enthusiasm. Be engaging, sociable, and vibrant.",
|
21 |
"Friendly Buddy": "Respond as a supportive and fun friend. Be informal, cheerful, and light-hearted.",
|
@@ -39,6 +39,11 @@ def get_groq_response(message, category):
|
|
39 |
"Exploring New Hobbies": "Encourage trying new activities and provide ideas for hobbies that fit college life.",
|
40 |
"Clubs & Extracurriculars": "Offer advice on joining clubs, participating in activities, and enhancing the college experience.",
|
41 |
"Creative Projects": "Provide inspiration and resources for personal or group creative endeavors.",
|
|
|
|
|
|
|
|
|
|
|
42 |
}
|
43 |
|
44 |
system_message = system_messages.get(category, "Category not recognized. Respond appropriately to the user's input.")
|
@@ -68,20 +73,20 @@ def chatbot(user_input, category, history=[]):
|
|
68 |
# Categories grouped into main and subcategories
|
69 |
categories = {
|
70 |
"Academic Support": [
|
71 |
-
"Study Tips", "Exam Preparation", "Project Guidance", "Time Management",
|
72 |
],
|
73 |
"Mental & Physical Wellness": [
|
74 |
"Stress Management", "Motivation & Focus", "Mental Health", "Physical Health", "Work-Life Balance"
|
75 |
],
|
76 |
"Career & Financial": [
|
77 |
"Networking & Career Building", "Finding Part-Time Jobs", "Scholarships & Financial Aid",
|
78 |
-
"Resume Building", "Interview Preparation", "Budgeting Tips", "Skill Development"
|
79 |
],
|
80 |
-
"
|
81 |
-
"Friendship & Social Skills", "Exploring New Hobbies", "Clubs & Extracurriculars", "Creative Projects"
|
82 |
],
|
83 |
-
"Fun
|
84 |
-
"Funny", "Flirty", "Scary", "
|
85 |
]
|
86 |
}
|
87 |
|
|
|
13 |
"Stress Management": "Provide soothing advice and tips to help the user manage stress. Be calm, empathetic, and reassuring.",
|
14 |
"Career Advice": "Offer professional and constructive career advice. Be encouraging, insightful, and action-oriented.",
|
15 |
"General": "Engage in general conversation. Be friendly, approachable, and easygoing.",
|
16 |
+
"Funny": "Respond with humorous remarks and witty commentary. Be entertaining but remain respectful and comedy with some relatable jokes.",
|
17 |
+
"Flirty": "Respond playfully and with charm. Keep it light-hearted, fun, and appropriate and flirt in extreme way.",
|
18 |
+
"Scary": "Respond with spooky or thrilling remarks. Set a mysterious and eerie tone with some ghost talking.",
|
19 |
"Business Mind": "Respond with a sharp, professional focus. Offer strategic advice and maintain a results-driven tone.",
|
20 |
"Extrovert": "Respond with high energy and enthusiasm. Be engaging, sociable, and vibrant.",
|
21 |
"Friendly Buddy": "Respond as a supportive and fun friend. Be informal, cheerful, and light-hearted.",
|
|
|
39 |
"Exploring New Hobbies": "Encourage trying new activities and provide ideas for hobbies that fit college life.",
|
40 |
"Clubs & Extracurriculars": "Offer advice on joining clubs, participating in activities, and enhancing the college experience.",
|
41 |
"Creative Projects": "Provide inspiration and resources for personal or group creative endeavors.",
|
42 |
+
"Abusive(USE ON YOUR OWN RISK)": "Respond with aggressive language while maintaining factual accuracy and woth some double meaning 18+ content.",
|
43 |
+
"Roasting(USE ON YOUR OWN RISK)": "Deliver witty and humorous insults with a creative edge with some double meaning 18+ content.",
|
44 |
+
"Attitude": "Respond with bold confidence and a touch of assertiveness.",
|
45 |
+
"Poetic": "Craft responses in a rhythmic and expressive poetic style.",
|
46 |
+
|
47 |
}
|
48 |
|
49 |
system_message = system_messages.get(category, "Category not recognized. Respond appropriately to the user's input.")
|
|
|
73 |
# Categories grouped into main and subcategories
|
74 |
categories = {
|
75 |
"Academic Support": [
|
76 |
+
"Study Tips", "Exam Preparation", "Project Guidance", "Time Management",
|
77 |
],
|
78 |
"Mental & Physical Wellness": [
|
79 |
"Stress Management", "Motivation & Focus", "Mental Health", "Physical Health", "Work-Life Balance"
|
80 |
],
|
81 |
"Career & Financial": [
|
82 |
"Networking & Career Building", "Finding Part-Time Jobs", "Scholarships & Financial Aid",
|
83 |
+
"Resume Building", "Interview Preparation", "Budgeting Tips", "Skill Development", "Business Mind",
|
84 |
],
|
85 |
+
"Personal Growth": [
|
86 |
+
"Friendship & Social Skills", "Exploring New Hobbies", "Clubs & Extracurriculars", "Creative Projects", "Building Confidence"
|
87 |
],
|
88 |
+
"Fun & Casual": [
|
89 |
+
"Funny", "Flirty", "Scary", "Extrovert", "Friendly Buddy", "Abusive(USE ON YOUR OWN RISK)", "Roasting(USE ON YOUR OWN RISK)", "Attitude", " Poetic"
|
90 |
]
|
91 |
}
|
92 |
|