Spaces:
Running
Running
Commit
·
a9d3c11
1
Parent(s):
473a7cc
small fix
Browse files
app.py
CHANGED
@@ -29,8 +29,8 @@ Sizes:
|
|
29 |
Custom size: This vendor doesn't support custom sizes
|
30 |
|
31 |
Material:
|
32 |
-
Standard (default)
|
33 |
-
Uncoated
|
34 |
|
35 |
Base Prices (Quantity,Price per Unit $):
|
36 |
100, 0.23
|
@@ -56,8 +56,8 @@ Sizes:
|
|
56 |
Custom size: multiplier 2.0
|
57 |
|
58 |
Material:
|
59 |
-
Standard (default)
|
60 |
-
Uncoated
|
61 |
|
62 |
Base Prices (Quantity,Price per Unit $):
|
63 |
100, 0.25
|
@@ -83,8 +83,8 @@ Sizes:
|
|
83 |
Custom size: multiplier 2.0
|
84 |
|
85 |
Material:
|
86 |
-
Standard (default)
|
87 |
-
Uncoated
|
88 |
|
89 |
Base Prices (Quantity,Price per Unit $):
|
90 |
100, 0.21
|
@@ -106,16 +106,15 @@ def find_best_price(request):
|
|
106 |
"2. Calculate the final price by:\n"
|
107 |
" - Finding the nearest lower quantity in the base price list. For example if user requests 700 cards - the nearest base price list is for 500\n"
|
108 |
" - Multiplying by the size multiplier\n"
|
109 |
-
" - Multiplying by the material\n"
|
110 |
"3. Do not use linear interpolation for quantities - use the nearest lower quantity pricing.\n\n"
|
111 |
"Example:\n"
|
112 |
"User: I want to print 600 business cards, 6x6 cm size, \n"
|
113 |
"Answer:\n"
|
114 |
"PrintPronto: Doesn't support custom size\n"
|
115 |
"###\n"
|
116 |
-
"BannerLord: 600 * multiplier for custom size *
|
117 |
"###\n"
|
118 |
-
"PrintMaster: 600 * multiplier for custom size *
|
119 |
"If user haven't specified one of the parameters, use the default one"
|
120 |
"Your response should display ONLY final pricing for each available option, nothing more"
|
121 |
"The '###' symbol must separate each printer's price calculation.\n"
|
|
|
29 |
Custom size: This vendor doesn't support custom sizes
|
30 |
|
31 |
Material:
|
32 |
+
- Standard (default)
|
33 |
+
- Uncoated
|
34 |
|
35 |
Base Prices (Quantity,Price per Unit $):
|
36 |
100, 0.23
|
|
|
56 |
Custom size: multiplier 2.0
|
57 |
|
58 |
Material:
|
59 |
+
- Standard (default)
|
60 |
+
- Uncoated
|
61 |
|
62 |
Base Prices (Quantity,Price per Unit $):
|
63 |
100, 0.25
|
|
|
83 |
Custom size: multiplier 2.0
|
84 |
|
85 |
Material:
|
86 |
+
- Standard (default)
|
87 |
+
- Uncoated
|
88 |
|
89 |
Base Prices (Quantity,Price per Unit $):
|
90 |
100, 0.21
|
|
|
106 |
"2. Calculate the final price by:\n"
|
107 |
" - Finding the nearest lower quantity in the base price list. For example if user requests 700 cards - the nearest base price list is for 500\n"
|
108 |
" - Multiplying by the size multiplier\n"
|
|
|
109 |
"3. Do not use linear interpolation for quantities - use the nearest lower quantity pricing.\n\n"
|
110 |
"Example:\n"
|
111 |
"User: I want to print 600 business cards, 6x6 cm size, \n"
|
112 |
"Answer:\n"
|
113 |
"PrintPronto: Doesn't support custom size\n"
|
114 |
"###\n"
|
115 |
+
"BannerLord: 600 * multiplier for custom size * price per unit for nearest pack size. Total for 600: $240\n"
|
116 |
"###\n"
|
117 |
+
"PrintMaster: 600 * multiplier for custom size * price per unit for nearest pack size. Total for 600: $216\n\n"
|
118 |
"If user haven't specified one of the parameters, use the default one"
|
119 |
"Your response should display ONLY final pricing for each available option, nothing more"
|
120 |
"The '###' symbol must separate each printer's price calculation.\n"
|