Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -4,22 +4,31 @@ def generate_email(customer_name, out_of_stock, dispatched, template_choice):
|
|
4 |
# Define the two email templates with placeholders.
|
5 |
template1 = """Dear [variable: customer name],
|
6 |
Thank you for your recent order. We regret to inform you that, according to our vendor, the below product you have ordered are currently out of stock:
|
|
|
7 |
[variable: out of stock product]
|
|
|
8 |
Since we do not have an estimated time of when it will be back in stock at this moment, as a solution, we would like to offer you either a refund or an exchange for an alternative model. We understand that this situation may have caused inconvenience and we sincerely apologize for that.
|
9 |
Please let us know your preference by replying to this email and we will take care of the rest. If you have any further questions or concerns, please do not hesitate to reach out to us.
|
|
|
10 |
Sincerely,
|
|
|
11 |
Winson Lai
|
12 |
Trendy Sweet Shop"""
|
13 |
|
14 |
template2 = """Dear [variable: customer name],
|
15 |
Thanks for your order. We would like to update you your order status as following :
|
|
|
16 |
Out of Stock:
|
17 |
[variable: out of stock product]
|
|
|
18 |
Dispatched:
|
19 |
[variable: dispatched product]
|
|
|
20 |
Since we do not have an estimated time of when the outstanding item will be back in stock at this moment, a a solution, we would like to offer you either a refund or an exchange for an alternative model. We understand that this situation may have caused inconvenience and we sincerely apologize for that.
|
21 |
Please let us know your preference by replying to this email and we will take care of the rest. If you have any further questions or concerns, please do not hesitate to reach out to us.
|
|
|
22 |
Sincerely,
|
|
|
23 |
Winson Lai
|
24 |
Trendy Sweet Shop"""
|
25 |
|
|
|
4 |
# Define the two email templates with placeholders.
|
5 |
template1 = """Dear [variable: customer name],
|
6 |
Thank you for your recent order. We regret to inform you that, according to our vendor, the below product you have ordered are currently out of stock:
|
7 |
+
|
8 |
[variable: out of stock product]
|
9 |
+
|
10 |
Since we do not have an estimated time of when it will be back in stock at this moment, as a solution, we would like to offer you either a refund or an exchange for an alternative model. We understand that this situation may have caused inconvenience and we sincerely apologize for that.
|
11 |
Please let us know your preference by replying to this email and we will take care of the rest. If you have any further questions or concerns, please do not hesitate to reach out to us.
|
12 |
+
|
13 |
Sincerely,
|
14 |
+
|
15 |
Winson Lai
|
16 |
Trendy Sweet Shop"""
|
17 |
|
18 |
template2 = """Dear [variable: customer name],
|
19 |
Thanks for your order. We would like to update you your order status as following :
|
20 |
+
|
21 |
Out of Stock:
|
22 |
[variable: out of stock product]
|
23 |
+
|
24 |
Dispatched:
|
25 |
[variable: dispatched product]
|
26 |
+
|
27 |
Since we do not have an estimated time of when the outstanding item will be back in stock at this moment, a a solution, we would like to offer you either a refund or an exchange for an alternative model. We understand that this situation may have caused inconvenience and we sincerely apologize for that.
|
28 |
Please let us know your preference by replying to this email and we will take care of the rest. If you have any further questions or concerns, please do not hesitate to reach out to us.
|
29 |
+
|
30 |
Sincerely,
|
31 |
+
|
32 |
Winson Lai
|
33 |
Trendy Sweet Shop"""
|
34 |
|