Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ st.markdown(
|
|
34 |
text = st.text_area(
|
35 |
"Enter your comment",
|
36 |
placeholder="Type something here...",
|
37 |
-
height=
|
38 |
help="Write a comment you would like us to respond to!" # Tooltip for guidance
|
39 |
) # Create a text input area
|
40 |
|
@@ -71,7 +71,7 @@ def prompt_gen(user_review):
|
|
71 |
"- Begins with sincere apology and acknowledgment\n"
|
72 |
"- Clearly explains solution process with concrete steps\n"
|
73 |
"- Offers appropriate compensation/redemption\n"
|
74 |
-
"- Keeps tone humble and solution-focused (3
|
75 |
"Response:"
|
76 |
)
|
77 |
},
|
@@ -82,7 +82,7 @@ def prompt_gen(user_review):
|
|
82 |
"- Immediately acknowledges the product issue\n"
|
83 |
"- Explains quality control measures being taken\n"
|
84 |
"- Provides clear return/replacement instructions\n"
|
85 |
-
"- Offers goodwill gesture (3
|
86 |
"Response:"
|
87 |
)
|
88 |
},
|
@@ -93,7 +93,7 @@ def prompt_gen(user_review):
|
|
93 |
"- Directly addresses the safety worries\n"
|
94 |
"- References relevant certifications/standards\n"
|
95 |
"- Offers dedicated support contact\n"
|
96 |
-
"- Provides satisfaction guarantee (3
|
97 |
"Response:"
|
98 |
)
|
99 |
},
|
@@ -103,7 +103,7 @@ def prompt_gen(user_review):
|
|
103 |
"As a customer service representative, craft a concise response that:\n"
|
104 |
"- Specifically acknowledges both positive and constructive feedback\n"
|
105 |
"- Briefly mentions loyalty/referral programs\n"
|
106 |
-
"- Ends with shopping invitation (3
|
107 |
"Response:"
|
108 |
)
|
109 |
},
|
@@ -114,7 +114,7 @@ def prompt_gen(user_review):
|
|
114 |
"- Provides additional relevant product information\n"
|
115 |
"- Highlights key service features\n"
|
116 |
"- Politely requests more detailed feedback\n"
|
117 |
-
"- Maintains professional tone (3
|
118 |
"Response:"
|
119 |
)
|
120 |
},
|
@@ -125,7 +125,7 @@ def prompt_gen(user_review):
|
|
125 |
"- Shows genuine understanding of the issue\n"
|
126 |
"- Proposes personalized recovery solution\n"
|
127 |
"- Offers extended support options\n"
|
128 |
-
"- Maintains positive outlook (3
|
129 |
"Response:"
|
130 |
)
|
131 |
},
|
@@ -136,7 +136,7 @@ def prompt_gen(user_review):
|
|
136 |
"- Matches customer's positive energy appropriately\n"
|
137 |
"- Highlights unexpected product benefits\n"
|
138 |
"- Invites to user community/events\n"
|
139 |
-
"- Maintains brand voice (3
|
140 |
"Response:"
|
141 |
)
|
142 |
}
|
|
|
34 |
text = st.text_area(
|
35 |
"Enter your comment",
|
36 |
placeholder="Type something here...",
|
37 |
+
height=100,
|
38 |
help="Write a comment you would like us to respond to!" # Tooltip for guidance
|
39 |
) # Create a text input area
|
40 |
|
|
|
71 |
"- Begins with sincere apology and acknowledgment\n"
|
72 |
"- Clearly explains solution process with concrete steps\n"
|
73 |
"- Offers appropriate compensation/redemption\n"
|
74 |
+
"- Keeps tone humble and solution-focused (1-3 sentences)\n\n"
|
75 |
"Response:"
|
76 |
)
|
77 |
},
|
|
|
82 |
"- Immediately acknowledges the product issue\n"
|
83 |
"- Explains quality control measures being taken\n"
|
84 |
"- Provides clear return/replacement instructions\n"
|
85 |
+
"- Offers goodwill gesture (1-3 sentences)\n\n"
|
86 |
"Response:"
|
87 |
)
|
88 |
},
|
|
|
93 |
"- Directly addresses the safety worries\n"
|
94 |
"- References relevant certifications/standards\n"
|
95 |
"- Offers dedicated support contact\n"
|
96 |
+
"- Provides satisfaction guarantee (1-3 sentences)\n\n"
|
97 |
"Response:"
|
98 |
)
|
99 |
},
|
|
|
103 |
"As a customer service representative, craft a concise response that:\n"
|
104 |
"- Specifically acknowledges both positive and constructive feedback\n"
|
105 |
"- Briefly mentions loyalty/referral programs\n"
|
106 |
+
"- Ends with shopping invitation (1-3 sentences)\n\n"
|
107 |
"Response:"
|
108 |
)
|
109 |
},
|
|
|
114 |
"- Provides additional relevant product information\n"
|
115 |
"- Highlights key service features\n"
|
116 |
"- Politely requests more detailed feedback\n"
|
117 |
+
"- Maintains professional tone (1-3 sentences)\n\n"
|
118 |
"Response:"
|
119 |
)
|
120 |
},
|
|
|
125 |
"- Shows genuine understanding of the issue\n"
|
126 |
"- Proposes personalized recovery solution\n"
|
127 |
"- Offers extended support options\n"
|
128 |
+
"- Maintains positive outlook (1-3 sentences)\n\n"
|
129 |
"Response:"
|
130 |
)
|
131 |
},
|
|
|
136 |
"- Matches customer's positive energy appropriately\n"
|
137 |
"- Highlights unexpected product benefits\n"
|
138 |
"- Invites to user community/events\n"
|
139 |
+
"- Maintains brand voice (1-3 sentences)\n\n"
|
140 |
"Response:"
|
141 |
)
|
142 |
}
|