tomemojo commited on
Commit
5e3b3e8
·
1 Parent(s): 443d813

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +96 -137
app.py CHANGED
@@ -17,7 +17,7 @@ def chatbot(input,systemInstructions):
17
  chat = openai.ChatCompletion.create(
18
  model="gpt-3.5-turbo",
19
  messages=messages,
20
- temperature=0.2,
21
  top_p=0.3,
22
  n=1,
23
  max_tokens = 1024,
@@ -52,93 +52,99 @@ Can I stop by your warehouse and pick up my order? Yes. Let us know 48 hrs prior
52
  Do you offer any financial help for someone with poor credit? We do not offer any financial help or financing options for customers with poor credit. However, we give extra discount on our demo trikes.
53
  For customers unable to afford the full price or with poor credit: Our website allows customers to select installment payments during the checkout process. If installment payments aren't an option, we provide demo vehicles. Our sales representatives can reach out to you with further information. Typically, demo vehicles are priced at about half the regular cost.
54
 
55
- Test ride: At present, we have offices in Los Angeles, CA, and Orlando, FL, where you can schedule a test ride for our three-wheeled vehicles. Visit our website to book a time slot, but please note that Sundays are excluded.
56
- If you are located in a different area or state, you can find our nearest dealers through our website and call them to arrange an appointment. If there are no dealers close to your location, please provide your details, and we will help you connect with nearby customers who already own our three-wheeled vehicles. They will be able to share their vehicles with you for a test ride.
57
- In the future, if you decide to purchase one of our three-wheeled vehicles, you can also participate in this sharing service and receive rewards for doing so.
58
-
59
- Why is your your product higher price compared with others? Our vehicles have a higher price point because they come equipped with advanced features, such as top-quality Bafang motors. These motors offer better performance and durability compared to the ordinary motors used in more affordable vehicles. The target market for tricycles is different from that of bicycles. Tricycle customers tend to place a higher value on safety, stability, and reliable after-sales service, as they often use these vehicles for daily commuting and longer trips.
60
- On the other hand, bicycles are primarily used by young people and students, who tend to prioritize affordability over advanced features. They usually view bicycles as a convenient and economical means of transportation for shorter distances, without placing much emphasis on additional features or after-sales support. As a result, the prices of bicycles are generally lower than those of tricycles with advanced configurations.
61
-
62
- Customers are encouraged to share their experiences, photos, and glowing reviews on our Facebook page, which may lead to receiving special gifts as a token of our appreciation.
63
-
64
- how do I transport the trike? Does it easily come aport to take in car? We provide a custom-designed hitch rack specifically tailored for our tricycles, available for purchase to enhance your transportation experience. Our trike can be conveniently positioned horizontally in a van. To optimize the fit, simply rotate the handlebar 90 degrees.
65
- Caddy Pro is 31-inch height, Bison S is 28-inch height, Bison Pro is 31-inch height.
66
-
67
- The information of CADDY PRO:
68
- MODEL CADDY PRO
69
- Motor type DC Brushless
70
- Motor power 500W
71
- Rated Voltage 48V
72
- Maximum speed 20MPH
73
- Battery range 35Miles
74
- Battery charging time 4 - 6hours
75
- Battery type Lithium-Ion
76
- Battery capacity 48V/15.6Ah
77
- Dimensions (inch) 74 L X 31 W X 46 H
78
- Frame Aluminum 6061
79
- Maximum user weight 330lbs
80
- Vehicle weight 90 lbs(with battery)
81
- Transmission type 7-Speed
82
- Front brake type Hydraulic Disc
83
- Rear brake type Hydraulic Disc
84
- Tire size 20 x 4.0" rear / 24 x 4.0" front
85
- Stand over height 18in
86
- Seat to ground height minimum 29in and maximum 37in
87
- Front basket size 14.5 x 10.5 x 5.0 in
88
- Rear basket size 21 x 17.5 x 10 in
89
- Handlebar height Min: 41in / Max: 47in
90
- Motor brand: Bafang
91
- Battery Brand: XNW ( Brand with quality assurance )
92
-
93
- Information of BISON PRO
94
- Motor type DC Brushless
95
- Motor power 750W
96
- Rated Voltage 48 V
97
- Maximum speed on PAS 20 MPH
98
- Battery range 45 Miles
99
- Battery charging time 4 - 6hours
100
- Battery type Lithium-Ion
101
- Battery capacity 48V/23.2Ah
102
- Dimensions (inch) 74 L X 31 W X 46 H
103
- Frame Aluminum alloy
104
- Max. user weight 330 lbs
105
- Vehicle weight 123 lbs (with battery)
106
- Transmission type 7-Speed
107
- Front brake type Hydraulic Disc
108
- Rear brake type Hydraulic Disc
109
- Tire size 20 x 4.0" rear / 24 x 4.0" front
110
- Stand over height 15in
111
- Seat to ground Min: 27in/Max: 36in
112
- Front basket 14.5 x 10.5 x 4.5 in
113
- Rear basket 21 x 17.5 x 7.5 in
114
- Handlebar height Min: 41in / Max: 46in
115
- Motor brand: Bafang
116
- Battery Brand: XNW ( Brand with quality assurance )
117
-
118
- Information of BISON S
119
- Motor type DC Brushless
120
- Motor power 500W
121
- Rated Voltage 48 V
122
- Maximum speed on PAS 20 MPH
123
- Battery range 30 Miles
124
- Battery charging time 4 - 6hours
125
- Battery type Lithium-Ion
126
- Battery capacity 48V/11.6Ah
127
- Dimensions (inch) 70L X 28W X 40H
128
- Frame Aluminum 6061
129
- Max. user weight 250 lbs
130
- Vehicle weight 86 lbs (with battery)
131
- Transmission type 7-Speed
132
- Front brake type Mechanical Disc
133
- Rear brake type Mechanical Disc
134
- Tire size 20 x 2.5"
135
- Stand over height 14.5in
136
- Seat to ground Min: 27in / Max: 36in
137
- Front basket 14.5 x 10.5 x 4.5 in
138
- Rear basket 21 x 17.5 x 7.5 in
139
- Handlebar height Min: 36in / Max: 42in
140
- Motor brand: Bafang
141
- Battery Brand: XNW ( Brand with quality assurance )
 
 
 
 
 
 
142
 
143
  Assembly Service:
144
  When you purchase an electric trike from our company, we provide a convenient and hassle-free expert full assembly service, available for customers across all States. Our experienced technicians will professionally assemble your electric trike, ensuring that all components are properly installed, adjusted, and tested before it is shipped to you.
@@ -158,58 +164,11 @@ If the warranty is void for any reason the customer shall bear any repair or rep
158
  Always follow care and preventive maintenance procedures.
159
  Always keep receipts from any services performed to the vehicle by an authorized distributor or service center.
160
 
161
- The warranty will be voided by any of the following circumstances:
162
- Failure to follow all directions or recommendations listed in the user manual.
163
- Cycling collision, accidents or vehicle damage caused by careless parking
164
- Acts in violation of laws
165
- Failure to register your ebike
166
- DIY repairs on electronics
167
- Abusive use of the bicycle in off-road terrain, mud, snow, water, sand, gravel and water
168
- If the bicycle is used as rental unit
169
- Damages caused by natural disasters, such as earthquakes, lightning, fire, flooding and other hazards.
170
- Rust and/or paint fading caused by heavy exposure to rain, hail, snow or direct sunlight for prolonged periods of time.
171
- Overloading beyond the recommended capacity .
172
- Damages caused by nails, needles, broken glass , debris, sharp rocks or other foreign objects.
173
- Use of the vehicle for stunts, jumping from ramps, stairs, or elevated ramps.
174
- If vehicle is used in competitions or racing.
175
- Modifications made to the motor, electrical system, suspension frame, and battery.
176
- Use of components not approved by the manufacturer.
177
- Damages resulted from improper care and handling.
178
- Due to the nature of the product some components must be exclusive from the manufacturer such as but not limited to the battery, motor, main gauge cluster, controllers, Led headlights, brake drums or disc rotors and pads etc. Other components such as tires, tubes, saddle, racks, baskets may be used from market-ready or compatible products previous approval from the retailer or manufacturer.
179
-
180
- Return
181
- We have a 30-day return policy, which means you have 30 days after receiving your EMOJO BIKE to request a return.
182
- Returns are not allowed after 30 days of the delivery date.
183
- To be eligible for a return, your item must be in the same condition that you received it, unworn, unused or the ebike must have less than ten (10) miles on the odometer, and must include all items that were inside the box (charger, keys, hardware, etc.), and in its original packaging. You will also need the receipt or proof of purchase.
184
-
185
-
186
- Damages and issues
187
- Please inspect your order upon reception and contact us immediately if the item is defective, damaged, or if you receive the wrong item, so that we can evaluate the issue and make it right for you.
188
- To start a return, you can contact us at support@emojobike.com. If your return is accepted, we will send you a return shipping label, as well as instructions on how and where to send your package. Items sent back to us without first requesting a return will not be accepted. EMOJO bike is not responsible for the shipping cost of the packages returned by the customers themselves.
189
- You can always contact us for any return question at support@emojobike.com
190
-
191
-
192
- Shipping and Handling fee for non-quality issue return:
193
- E-Bikes $150/pc for a return
194
- E-Trikes $250/pc for a return
195
- Phone Holder, charger $15/pc for a return
196
- Front and Rear Basket $20/pc for a return
197
- E-bike Batteries $30/pc for a return
198
-
199
- Exchange for new model
200
- This term is only for the unworn, unused, unopened package, the ebike/etrike
201
- must have less than 10 miles on the odometer.
202
- Within 30 days-Same model but different color $200/pc for the return
203
- Within 30 days-Different model $200/pc for the return plus the price difference
204
- Over 30 days Exchange is no longer possible
205
- For returned items or items for exchange, we will need 3-6 business days upon receiving your item(s) to process the solution.
206
- After this period, we will refund within 3 business days.
207
- We will notify you once we’ve received and inspected your return, and let you know if the refund has been approved or not. If approved, the refund will be automatically processed on your original payment method. Please note that it may take some time for your bank or credit card company to process and post the refund.
208
  """
209
 
210
  generatedKnowledgeCorpus = generatedKnowledgeCorpus.replace("\n","")
211
- systemInstructions = "You are a customer service representative. Use the following text and respond to customer. '\
212
- If no answer is found in the following text start with 'ANSWER BASED ON EXTERNAL SEARCH'"
213
  systemInstructions = systemInstructions + '\n\n' + generatedKnowledgeCorpus
214
 
215
  response = chatbot(input, systemInstructions)
 
17
  chat = openai.ChatCompletion.create(
18
  model="gpt-3.5-turbo",
19
  messages=messages,
20
+ temperature=0.6,
21
  top_p=0.3,
22
  n=1,
23
  max_tokens = 1024,
 
52
  Do you offer any financial help for someone with poor credit? We do not offer any financial help or financing options for customers with poor credit. However, we give extra discount on our demo trikes.
53
  For customers unable to afford the full price or with poor credit: Our website allows customers to select installment payments during the checkout process. If installment payments aren't an option, we provide demo vehicles. Our sales representatives can reach out to you with further information. Typically, demo vehicles are priced at about half the regular cost.
54
 
55
+
56
+ MODEL RAM SS
57
+ Motor type DC Brushless
58
+ Motor power 750W
59
+ Rated Voltage 48 V
60
+ Maximum speed 20 MPH
61
+ Battery range 30Miles
62
+ Battery charging time 4 - 6hours
63
+ Battery type Lithium-Ion
64
+ Battery capacity 48V/10.4Ah
65
+ Dimensions (inch) 67L x 24 W x 45 H
66
+ Dimensions folded 39L x 18 W x 26H
67
+ Frame Aluminum-foldable
68
+ Max. user weight 230 lbs
69
+ Vehicle weight 55 lbs (with battery)
70
+ Transmission type Shimano 7-Speed
71
+ Front brake type Tektro-Disc
72
+ Rear brake type Tektro-Disc
73
+ Tire size 20" x 4"
74
+
75
+ MODEL LYNX PRO 750
76
+ Motor type DC Brushless
77
+ Motor power 750W
78
+ Rated Voltage 48 V
79
+ Maximum speed 20 MPH
80
+ Battery range 30 Miles
81
+ Battery charging time 4 - 6hours
82
+ Battery type Lithium-Ion
83
+ Battery capacity 48V/10.4Ah
84
+ Dimensions (inch) 67L x 24 W x 45 H
85
+ Dimensions folded 39L x 18 W x 26H
86
+ Frame Aluminum-foldable
87
+ Max. user weight 230 lbs
88
+ Vehicle weight 55 lbs (with battery)
89
+ Transmission type Shimano Altus 7-Speed
90
+ Front brake type Tektro-Disc
91
+ Rear brake type Tektro-Disc
92
+ Tire size 20" x 4"
93
+
94
+ MODEL WILDCAT PRO 750
95
+ Motor type DC Brushless
96
+ Motor power 750W
97
+ Rated Voltage 48V
98
+ Maximum speed 20 MPH
99
+ Battery range 30 Miles
100
+ Battery charging time 4-6 hours
101
+ Battery type Lithium-Ion
102
+ Battery capacity 48V/10.4 Ah
103
+ Dimensions (inch) 78L x 25W x 43H
104
+ Frame Aluminum-Rigid
105
+ Max.user weight 330 lbs
106
+ Transmission type Shimano 7-Speed
107
+ Front brake type hydraulic brake
108
+ Rear brake type hydraulic brake
109
+ Tire size 26" x 4"
110
+
111
+ MODEL WILDCAT
112
+ Motor type DC Brushless
113
+ Motor power 500W
114
+ Rated Voltage 48V
115
+ Maximum speed 20 MPH
116
+ Battery range 30 Miles
117
+ Battery charging time 4-6 hours
118
+ Battery type Lithium-Ion
119
+ Battery capacity 48V/10.4 Ah
120
+ Dimensions (inch) 78L x 25W x 43H
121
+ Frame Aluminum-Rigid
122
+ Max.user weight 330 lbs
123
+ Transmission type Shimano 7-Speed
124
+ Front brake type hydraulic brake
125
+ Rear brake type hydraulic brake
126
+ Tire size 26" x 4"
127
+
128
+ MODEL RAM SS
129
+ Motor type DC Brushless
130
+ Motor power 750W
131
+ Rated Voltage 48 V
132
+ Maximum speed 20 MPH
133
+ Battery range 30Miles
134
+ Battery charging time 4 - 6hours
135
+ Battery type Lithium-Ion
136
+ Battery capacity 48V/10.4Ah
137
+ Dimensions (inch) 67L x 24 W x 45 H
138
+ Dimensions folded 39L x 18 W x 26H
139
+ Frame Aluminum-foldable
140
+ Max. user weight 230 lbs
141
+ Vehicle weight 55 lbs (with battery)
142
+ Transmission type Shimano 7-Speed
143
+ Front brake type Tektro-Disc
144
+ Rear brake type Tektro-Disc
145
+ Tire size 20" x 4"
146
+
147
+
148
 
149
  Assembly Service:
150
  When you purchase an electric trike from our company, we provide a convenient and hassle-free expert full assembly service, available for customers across all States. Our experienced technicians will professionally assemble your electric trike, ensuring that all components are properly installed, adjusted, and tested before it is shipped to you.
 
164
  Always follow care and preventive maintenance procedures.
165
  Always keep receipts from any services performed to the vehicle by an authorized distributor or service center.
166
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
167
  """
168
 
169
  generatedKnowledgeCorpus = generatedKnowledgeCorpus.replace("\n","")
170
+ systemInstructions = "You are a customer who purchased emojo bike and will write excellent customer reviews. Use the following text and write. '\
171
+ "
172
  systemInstructions = systemInstructions + '\n\n' + generatedKnowledgeCorpus
173
 
174
  response = chatbot(input, systemInstructions)