File size: 14,207 Bytes
4b0ba88
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
import openai
import os
import streamlit as st


API_TOKEN = os.environ["API_TOKEN"]
def chatbot(input,systemInstructions):
    
    openai.api_key = API_TOKEN
    
    if input:
        messages = [
            {"role": "system", "content": systemInstructions},
        ]
        
        messages.append({"role": "user", "content": input})
        
        chat = openai.ChatCompletion.create(
            model="gpt-3.5-turbo", 
            messages=messages,
            temperature=0.2,
            top_p=0.3,
            n=1,
            max_tokens = 1024,
            presence_penalty = 0.5,
            frequency_penalty = 0.5,
            #logit_bias
        )
        reply = chat.choices[0].message.content
        messages.append({"role": "assistant", "content": reply})
        return reply


def emojobot(input):
    
    #PHNknowledge = pd.read_csv('Layer1structureKnowledge.csv')
    #generatedKnowledge = PHNknowledge['Knowledge'].values.tolist()
    #random.shuffle(generatedKnowledge)
    #generatedKnowledgeCorpus = ' '.join(generatedKnowledge[:75])
    
    generatedKnowledgeCorpus = """
    How far can I go on a single charge? The range depends on each bike model and several other factors such as the weight of the rider, the type grade of he terrain, wind speed and direction, tire pressure, temperature, cargo, etc. The average range on a fully charged battery is between 30 and 65 Miles. To get the best possible range the rider must pedal along with the P.A.S. Riding on throttle alone will considerably reduce the milage.
What's maximum speed? All models have a limited speed of 20 MPH on pedal assist to comply with Class 2 classification, meaning they can be ridden on most public roads and the rider does not require any special license.
How long does it take to fully charge a depleted battery? Typical battery full charging time is 5 hrs.
Do I need a special license or register my vehicle with the DMV? License is not required at this time by law, as long as the ebike is Class1 or Class 2. Insurance is optional but not required by law.
What's the maximum weight capacity? Payload varies depending on the model. Typical maximum payload range on trikes goes from 250 to 330 Lbs, this includes any additional cargo.
What kind of warranty do your trikes have? Each vehicle has a limited warranty for 1 year from the time of the purchase. Consult your warranty terms in your user manual for more details.
What happens if my vehicle requires service or a repair while it is under the warranty? Trikes require similar maintenance than regular bicycles such as chain tension adjustment, lubrication, screws and nuts re-torque etc. However there are certain components that given the case may require directly to the repair shop.
I ordered a completed trike. how is it packed? In most cases, the bike comes with one large box already preassembled, however you would need to install some components such as front wheel, fenders, handlebar and lights. Trikes are usually shipped in 3 boxes and require full assembly.
How long will the order be shipped out? It usually takes from 3-5 days after placing your order.
Where do you ship? We ship inside the continental USA. Shipping to Canada and Mexico would be possible but extra shipping and customs fees would be involved and need to be covered by the purchaser.
Can I stop by your warehouse and pick up my order? Yes. Let us know 48 hrs prior to your planned visit and we will make sure to have your order ready. We also provide fully assembly service with additional cost.
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.

The information of CADDY PRO:
MODEL	CADDY PRO
Motor type	DC Brushless
Motor power	500W
Rated Voltage	48V
Maximum speed	20MPH
Battery range	35Miles
Battery charging time 4 - 6hours
Battery type	Lithium-Ion
Battery capacity	48V/15.6Ah
Dimensions (inch)	74 L X 31 W X 46 H
Frame	Aluminum 6061
Maximum user weight	330lbs
Vehicle weight	90 lbs(with battery)
Transmission type 7-Speed
Front brake type Hydraulic Disc
Rear brake type Hydraulic Disc
Tire size  20 x 4.0" rear / 24 x 4.0" front
Stand over height 18in
Seat to ground height minimum 29in and maximum 37in
Front basket size 14.5 x 10.5 x 5.0 in 
Rear basket size 21 x 17.5 x 10 in
Handlebar height Min: 41in / Max: 47in  
Motor brand: Bafang 
Battery Brand: XNW ( Brand with quality assurance )

Information of CADDY 
Motor type	DC Brushless
Motor power	500W
Rated Voltage 48 V
Maximum speed 20 MPH
Battery range 35 Miles
Battery charging time 4 - 6hours
Battery type Lithium-Ion
Battery capacity 48V/15.6Ah
Dimensions (inch) 74 L X 31 W X 46 H
Frame Aluminum 6061
Max. user weight 330 lbs
Vehicle weight 90 lbs (with battery)
Transmission type 7-Speed
Front brake type Mechanical Disc
Rear brake type	Mechanical Disc
Tire size 	20 x 4.0" rear / 24 x 4.0"  front
Stand over height 18in
Seat to ground Min: 29in /  Max:  37in
Front basket 14.5 x 10.5 x 5.0 in 
Rear basket 21 x 17.5 x 10 in
Handlebar height Min: 41in / Max: 47in  
Motor brand: Bafang 
Battery Brand: XNW ( Brand with quality assurance )
Seat to ground Min: 29in /  Max:  37in
Front basket 14.5 x 10.5 x 5.0 in 
Rear basket 21 x 17.5 x 10 in

Information of BISON PRO
Motor type	DC Brushless
Motor power	750W
Rated Voltage 48 V
Maximum speed on PAS 20 MPH
Battery range 45 Miles
Battery charging time 4 - 6hours
Battery type Lithium-Ion
Battery capacity 48V/23.2Ah
Dimensions (inch) 74 L X 31 W X 46 H
Frame Aluminum alloy
Max. user weight 330 lbs
Vehicle weight 123 lbs (with battery)
Transmission type 7-Speed
Front brake type Hydraulic Disc
Rear brake type	Hydraulic Disc
Tire size 20 x 4.0" rear / 24 x 4.0" front
Stand over height 15in
Seat to ground Min: 27in/Max: 36in
Front basket 14.5 x 10.5 x 4.5 in 
Rear basket 21 x 17.5 x 7.5 in
Handlebar height Min: 41in / Max: 46in  
Motor brand: Bafang 
Battery Brand: XNW ( Brand with quality assurance )

Information of BISON S
Motor type	DC Brushless
Motor power	500W
Rated Voltage 48 V
Maximum speed on PAS 20 MPH
Battery range 30 Miles
Battery charging time 4 - 6hours
Battery type Lithium-Ion
Battery capacity 48V/11.6Ah
Dimensions (inch) 70L X 28W X 40H
Frame Aluminum 6061
Max. user weight 250 lbs
Vehicle weight	86 lbs (with battery)
Transmission type 7-Speed
Front brake type Mechanical Disc
Rear brake type	Mechanical Disc
Tire size 20 x 2.5"
Stand over height 14.5in
Seat to ground Min: 27in /  Max: 36in
Front basket 14.5 x 10.5 x 4.5 in 
Rear basket 21 x 17.5 x 7.5 in
Handlebar height Min: 36in / Max: 42in  
Motor brand: Bafang 
Battery Brand: XNW ( Brand with quality assurance )

Assembly Service:
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.
We take care of the shipping as well by sending your fully assembled electric trike on a pallet. This method of shipping ensures that your trike arrives safely and securely at your doorstep, without any damage or need for further assembly. The shipping is absolutely free of charge.
Once you receive your electric trike, you can immediately start enjoying your ride, knowing that it has been expertly assembled and tested by our team. This service saves you time and effort, allowing you to focus on getting the most out of your new electric trike.
Please let me know if you have any other questions or concerns about our expert full assembly service, and I'd be more than happy to assist you.

Warranty
To make a warranty claim, always keep the vehicle model, date of purchase, vehicle serial number, and information from the retailer where you purchased the vehicle handy.

The warranty is limited to the terms listed below:

Frame, Suspension, Motor: 1 year for parts. 
Controller, Charger: 1 year for parts.
Battery: Warranty on the battery starts the date of purchase of the vehicle as new. The battery is sealed and cannot be opened or fixed. The battery should not have a percentage of nominal charge retention of 60% or less. Misuse of the battery, negligence or attempt to open or repair it will void the warranty.
General: The bicycle is backed up by a 1-year main warranty, certain components listed on this chart or consumables may be subject to a different period of coverage or not included in this warranty.
Consumables: Components subject to wear are not covered by the warranty: Tires, inner tubes, brake lines, brake pads, basket, wheel lining tape, light bulbs, LEDS, fuses, etc.
If the warranty is void for any reason the customer shall bear any repair or replacement costs resulting from vehicle misuse, negligence or abuse.
Always follow care and preventive maintenance procedures.
Always keep receipts from any services performed to the vehicle by an authorized distributor or service center.

The warranty will be voided by any of the following circumstances:
Failure to follow all directions or recommendations listed in the user manual.
Cycling collision, accidents or vehicle damage caused by careless parking 
Acts in violation of laws 
Failure to register your ebike
DIY repairs on electronics
Abusive use of the bicycle in off-road terrain, mud, snow, water, sand, gravel and water
If the bicycle is used as rental unit 
Damages caused by natural disasters, such as earthquakes, lightning, fire, flooding and other hazards.
Rust and/or paint fading caused by heavy exposure to rain, hail, snow or direct sunlight for prolonged periods of time.
Overloading beyond the recommended capacity .
Damages caused by nails, needles, broken glass , debris, sharp rocks or other foreign objects.
Use of the vehicle for stunts, jumping from ramps, stairs, or elevated ramps.
If vehicle is used in competitions or racing.
Modifications made to the motor, electrical system, suspension frame, and battery.
Use of components not approved by the manufacturer.
Damages resulted from improper care and handling.
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.

For any questions about your warranty or to make any claims please contact EMOJO bikes at:

Phone: 949.878.1518
Email: info@emojobike.com or support@emojobike.com
Address: 13845 Alton Parkway, B, Irvine, CA92618  USA

Return
We have a 30-day return policy, which means you have 30 days after receiving your EMOJO BIKE to request a return.

Returns are not allowed after 30 days of the delivery date.

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.


Damages and issues
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.
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.
You can always contact us for any return question at support@emojobike.com

NON-RETURNABLE ITEMS INCLUDE, BUT ARE NOT LIMITED TO:
Product from Unauthorized Resellers
Items damaged by human error
Special or custom orders
Sale items or gift cards
Giveaways or free items 

Shipping and Handling fee for non-quality issue return:
E-Bikes                                  $150/pc for a return
E-Trikes                                  $250/pc for a return
Phone Holder, charger           $15/pc for a return
Front and Rear Basket           $20/pc for a return
E-bike Batteries                     $30/pc for a return

Exchange for new model (Only for Non-quality related products)
This term is only for the unworn, unused, unopened package, the ebike/etrike
must have less than 10 miles on the odometer.
Within 30 days-Same model but different color      $200/pc for the return
Within 30 days-Different model                               $200/pc for the return plus the price difference
Over 30 days                                                              Exchange is no longer possible

For returned items or items for exchange, we will need 3-6 business days upon receiving your item(s) to process the solution.
After this period, we will refund within 3 business days.
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.
"""

    generatedKnowledgeCorpus = generatedKnowledgeCorpus.replace("\n","")
    systemInstructions = "You are a customer service representative. Strictly use the following text and respond to user. '\
        If no answer is found in the following text start with 'ANSWER BASED ON EXTERNAL SEARCH'"
    systemInstructions = systemInstructions + '\n\n' + generatedKnowledgeCorpus
    
    response = chatbot(input, systemInstructions)
    
    return response


st.title('Demo')

t.subheader("Enter the text you'd like to analyze.")
text = st.text_input('Enter text') #text is stored in this variable
st.write("Sentiment of Text: ")
st.write(emojobot(text))