Commit 0e6ae876 authored by Mkavi99's avatar Mkavi99

New

parent 219cc96a
> Why do I have a folder named ".expo" in my project?
The ".expo" folder is created when an Expo project is started using "expo start" command.
> What do the files contain?
- "devices.json": contains information about devices that have recently opened this project. This is used to populate the "Development sessions" list in your development builds.
- "packager-info.json": contains port numbers and process PIDs that are used to serve the application to the mobile device/simulator.
- "settings.json": contains the server configuration that is used to serve the application manifest.
> Should I commit the ".expo" folder?
No, you should not share the ".expo" folder. It does not contain any information that is relevant for other developers working on the project, it is specific to your machine.
Upon project creation, the ".expo" folder is already added to your ".gitignore" file.
{
"hostType": "lan",
"lanType": "ip",
"dev": true,
"minify": false,
"urlRandomness": null,
"https": false
}
# Auto detect text files and perform LF normalization
* text=auto
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 5
}
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 5
}
This diff is collapsed.
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 5
}
User,Chatbot
Good Morning,"Good morning, Have a nice day"
What's there to see,"We have historic sites, parks, and a lovely beach"
Are there any good restaurants nearby?,"Yes, there are some great restaurants around. Are you looking for a specific type of cuisine, or do you prefer something nearby?"
Best restaurants around?,Try 'Seaside Bistro' for seafood or 'Caf‚ Bella' for Italian cuisine.
How do I get to Trincomalee from here?,Could you please tell me where you are now
How do I get to the museum?,Take a taxi or bus 122 from downtown. It's a short ride
"Hello, Tell me about the beautiful Mountains ","Hello,"
Top attractions nearby?,"Don't miss the historic castle, the art museum, and the botanical gardens"
Any discounts for students?,"Yes, students get a 20% discount at most attractions"
What are the top attractions here?,"The top attractions in this area include Dunhinda Falls, Dhowa Rock Temple, and Bogoda Wooden Bridge. Which one interests you?"
Tell me about the park's hours,The park opens at 8 AM and closes at 10 PM. Enjoy your visit!
Tell me about the hiking trails.,The Pineview Trails offer scenic views and are perfect for beginners. Remember to bring comfortable shoes and water. Need directions to the trailhead?
Can you recommend a family-friendly attraction?, Sure! Royal Botanical Gardens is a great choice. It offers activities suitable for all ages.
Weather today,It's sunny with a high of 28øC. Perfect for outdoor activities.
Tell me about the waterfall?,Sure thing! The Silver Falls is a picturesque waterfall just 5 miles away. It's a great spot for hiking and picnics. Need directions?
"Hey, any cool places to see around here?","Absolutely! Are you interested in historical sites, natural attractions, or something else?"
I'm interested in natural attractions.,"Wonderful! Badulla offers a lot of benefits. Are historical sites, natural wonders, cultural landmarks, or something else your thing?"
I'd like to visit some waterfalls.,Excellent! Beautiful waterfalls are found in Badulla. The most well-known is Dunhinda Falls. It is renowned for its beautiful setting. Would you like to learn more about Dunhinda Falls or investigate your options for other waterfalls?
Tell me more about Dunhinda Falls.,About 10 km separate Badulla from Dunhinda Falls. It has a tranquil atmosphere and is surrounded by lush vegetation. The waterfall rises to a height of about 64 meters. Are there any additional details you require?
Are there any parks in Badulla?,Certainly! Badulla Public Park is a lovely park in Badulla. It's a wonderful spot to unwind and take in the scenery. The Dhowa Rock Temple is another structure that combines cultural significance with natural beauty. Would you like more information on these locations?
Tell me about Dhowa Rock Temple,The Dhowa Rock Temple is renowned for its magnificent Buddha statue carved out of rock. It offers a fusion of spirituality and unspoiled beauty and is situated in a picturesque area. Do you have any additional questions that I should know about?
Can you suggest any viewpoints for panoramic views?,Certainly! Beautiful panoramic views of the surroundings are available from the Ravana Ella viewpoint. It's a well-liked location for taking pictures and taking in the scenery. Do you require more advice or directions?
"No, that's helpful. Thank you!",Thank you very much! Have a great time discovering Badulla's splendor. Please feel free to ask if you need anything else or if you need help again in the future.
I'm planning a trip to Hatton. Can you recommend some tourist attractions? I'd like to know about natural sites.,"great decision Hatton is surrounded by breathtakingly beautiful scenery. Are you searching for hiking trails, waterfalls, or another type of attraction?"
Waterfalls sound interesting.,"Fantastic! In Hatton, there are magnificent waterfalls. St. Clair's Falls is one of the famous ones. It is a pair of waterfalls surrounded by a verdant landscape. Would you like to learn more about St. Clair's Falls or investigate your options for other waterfalls?"
Tell me more about St. Clair's Falls,About 3 km separate Hatton town and St. Clair's Falls. It is one of Sri Lanka's largest waterfalls and has a height of about 80 meters. Another option to think about is the nearby Devon Falls. Do you have any further questions that you would like to ask?
Can you help me with train timings from Colombo to Hatton?,"Certainly! To provide accurate train timings, could you please specify the date of your travel?"
I'll be traveling on May 15th.,Many thanks. The train from Colombo to Hatton departs on May 15 at 6:30 AM and arrives at around 1:00 PM. There is also a train in the afternoon that leaves at 3:30 PM. It's best to check closer to your departure date because timings can change.
Are there any hotels near Hatton railway station?,"Absolutely! Hatton offers various accommodation options. Would you prefer budget-friendly, mid-range, or luxury hotels?"
I'm looking for mid-range hotels.,"Yes, please! [Daynish Rock Bungalow Hotel ], [Greenfield Bedz Hotel ], and [Hill Cool Hotel & Restaurant Hotel ] are a few mid-range hotel choices close to Hatton railway station. Each provides welcoming accommodations and easy access to transportation. Would you like more information on any particular hotel?"
Tell me more about Daynish [Rock Bungalow Hotel ],"A reputable mid-range hotel with contemporary amenities is [Rock Bungalow Hotel]. It's a practical option for travelers since it's close to the train station and can be reached on foot. The hotel has a restaurant, welcoming staff, and cozy rooms. Do you have any additional questions?"
"No, that's helpful. Thank you!","You're welcome! Enjoy your trip to Hatton. If you have more questions or need assistance in the future, feel free to ask."
I'm planning a visit to Plains National Park. Can you suggest some nearby tourist attractions?,"Absolutely! Plains National Park has a lot to offer. Are you interested in natural sites, historical landmarks, outdoor activities, or something else?"
I'd like to explore some natural sites,"Great choice! The area around Plains National Park is known for its natural beauty. Are you looking for hiking trails, scenic viewpoints, waterfalls, or something else?"
Scenic viewpoints sound interesting,Wonderful! There are several viewpoints near Plains National Park that offer breathtaking panoramic views. Would you like more specific information about any of these viewpoints?
"Yes, tell me about the viewpoints.","Sure! Some popular viewpoints near Plains National Park include Little World's End view point ], [Great World's End view point], and [ Baker's Waterfalls ]. Each of these offers a unique vantage point to admire the park's landscapes. Do you need directions or more details about any particular viewpoint?"
Can you provide information about Baker's Waterfalls,Certainly! Baker's Waterfalls is known for its stunning views of the park's rolling hills and open plains. It's easily accessible via a short hike from the park's entrance. The best times to visit are during sunrise and sunset for the most picturesque views. Is there anything else you'd like to know?
How do I reach Plains National Park by train?,"To provide accurate train information, could you please specify your departure location or the nearest major city?"
I'll be departing from Trinco.,"To provide accurate train information, could you please specify your departure location or the nearest major city?"
I'll be departing from Colombo,"Thank you. Trains from colombo to Trinco usually run daily. The nearest train station to the park is colombo, which is about 271 km away. Trains depart around 7:41 PM?4:30 AM and the journey takes approximately (8 hr 49 min). Remember that schedules may vary, so it's advisable to check closer to your travel date."
Can you provide details about camping facilities in trinco,"Of course! Nilaveli camp site offers camping facilities for visitors. There are designated camping areas with basic amenities such as restrooms and picnic tables. Camping permits are required, and reservations can be made through the park's official website. Would you like more information about camping fees or the reservation process?"
Tell me about camping fees.,"Camping fees in Plains National Park vary based on the type of camping, duration of stay, and the number of occupants. They typically range from $19. It's recommended to check the official park website for the most up-to-date information on fees and reservations."
Thank you for the information!,"You're welcome! If you have more questions or need assistance in the future, feel free to ask."
Tell me about the Colombo National Museum's opening hours.,"Colombo National Museum's is usually open from 8 a.m. to 10 p.m. However, it's a good idea to check their website for any updates or changes."
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
This diff is collapsed.
User,Chatbot
Good Morning,"Good morning, Have a nice day"
What's there to see,"We have historic sites, parks, and a lovely beach"
Are there any good restaurants nearby?,"Yes, there are some great restaurants around. Are you looking for a specific type of cuisine, or do you prefer something nearby?"
Best restaurants around?,Try 'Seaside Bistro' for seafood or 'Caf‚ Bella' for Italian cuisine.
How do I get to Trincomalee from here?,Could you please tell me where you are now
How do I get to the museum?,Take a taxi or bus 122 from downtown. It's a short ride
"Hello, Tell me about the beautiful Mountains ","Hello,"
Top attractions nearby?,"Don't miss the historic castle, the art museum, and the botanical gardens"
Any discounts for students?,"Yes, students get a 20% discount at most attractions"
What are the top attractions here?,"The top attractions in this area include Dunhinda Falls, Dhowa Rock Temple, and Bogoda Wooden Bridge. Which one interests you?"
Tell me about the park's hours,The park opens at 8 AM and closes at 10 PM. Enjoy your visit!
Tell me about the hiking trails.,The Pineview Trails offer scenic views and are perfect for beginners. Remember to bring comfortable shoes and water. Need directions to the trailhead?
Can you recommend a family-friendly attraction?, Sure! Royal Botanical Gardens is a great choice. It offers activities suitable for all ages.
Weather today,It's sunny with a high of 28øC. Perfect for outdoor activities.
Tell me about the waterfall?,Sure thing! The Silver Falls is a picturesque waterfall just 5 miles away. It's a great spot for hiking and picnics. Need directions?
"Hey, any cool places to see around here?","Absolutely! Are you interested in historical sites, natural attractions, or something else?"
I'm interested in natural attractions.,"Wonderful! Badulla offers a lot of benefits. Are historical sites, natural wonders, cultural landmarks, or something else your thing?"
I'd like to visit some waterfalls.,Excellent! Beautiful waterfalls are found in Badulla. The most well-known is Dunhinda Falls. It is renowned for its beautiful setting. Would you like to learn more about Dunhinda Falls or investigate your options for other waterfalls?
Tell me more about Dunhinda Falls.,About 10 km separate Badulla from Dunhinda Falls. It has a tranquil atmosphere and is surrounded by lush vegetation. The waterfall rises to a height of about 64 meters. Are there any additional details you require?
Are there any parks in Badulla?,Certainly! Badulla Public Park is a lovely park in Badulla. It's a wonderful spot to unwind and take in the scenery. The Dhowa Rock Temple is another structure that combines cultural significance with natural beauty. Would you like more information on these locations?
Tell me about Dhowa Rock Temple,The Dhowa Rock Temple is renowned for its magnificent Buddha statue carved out of rock. It offers a fusion of spirituality and unspoiled beauty and is situated in a picturesque area. Do you have any additional questions that I should know about?
Can you suggest any viewpoints for panoramic views?,Certainly! Beautiful panoramic views of the surroundings are available from the Ravana Ella viewpoint. It's a well-liked location for taking pictures and taking in the scenery. Do you require more advice or directions?
"No, that's helpful. Thank you!",Thank you very much! Have a great time discovering Badulla's splendor. Please feel free to ask if you need anything else or if you need help again in the future.
I'm planning a trip to Hatton. Can you recommend some tourist attractions? I'd like to know about natural sites.,"great decision Hatton is surrounded by breathtakingly beautiful scenery. Are you searching for hiking trails, waterfalls, or another type of attraction?"
Waterfalls sound interesting.,"Fantastic! In Hatton, there are magnificent waterfalls. St. Clair's Falls is one of the famous ones. It is a pair of waterfalls surrounded by a verdant landscape. Would you like to learn more about St. Clair's Falls or investigate your options for other waterfalls?"
Tell me more about St. Clair's Falls,About 3 km separate Hatton town and St. Clair's Falls. It is one of Sri Lanka's largest waterfalls and has a height of about 80 meters. Another option to think about is the nearby Devon Falls. Do you have any further questions that you would like to ask?
Can you help me with train timings from Colombo to Hatton?,"Certainly! To provide accurate train timings, could you please specify the date of your travel?"
I'll be traveling on May 15th.,Many thanks. The train from Colombo to Hatton departs on May 15 at 6:30 AM and arrives at around 1:00 PM. There is also a train in the afternoon that leaves at 3:30 PM. It's best to check closer to your departure date because timings can change.
Are there any hotels near Hatton railway station?,"Absolutely! Hatton offers various accommodation options. Would you prefer budget-friendly, mid-range, or luxury hotels?"
I'm looking for mid-range hotels.,"Yes, please! [Daynish Rock Bungalow Hotel ], [Greenfield Bedz Hotel ], and [Hill Cool Hotel & Restaurant Hotel ] are a few mid-range hotel choices close to Hatton railway station. Each provides welcoming accommodations and easy access to transportation. Would you like more information on any particular hotel?"
Tell me more about Daynish [Rock Bungalow Hotel ],"A reputable mid-range hotel with contemporary amenities is [Rock Bungalow Hotel]. It's a practical option for travelers since it's close to the train station and can be reached on foot. The hotel has a restaurant, welcoming staff, and cozy rooms. Do you have any additional questions?"
"No, that's helpful. Thank you!","You're welcome! Enjoy your trip to Hatton. If you have more questions or need assistance in the future, feel free to ask."
I'm planning a visit to Plains National Park. Can you suggest some nearby tourist attractions?,"Absolutely! Plains National Park has a lot to offer. Are you interested in natural sites, historical landmarks, outdoor activities, or something else?"
I'd like to explore some natural sites,"Great choice! The area around Plains National Park is known for its natural beauty. Are you looking for hiking trails, scenic viewpoints, waterfalls, or something else?"
Scenic viewpoints sound interesting,Wonderful! There are several viewpoints near Plains National Park that offer breathtaking panoramic views. Would you like more specific information about any of these viewpoints?
"Yes, tell me about the viewpoints.","Sure! Some popular viewpoints near Plains National Park include Little World's End view point ], [Great World's End view point], and [ Baker's Waterfalls ]. Each of these offers a unique vantage point to admire the park's landscapes. Do you need directions or more details about any particular viewpoint?"
Can you provide information about Baker's Waterfalls,Certainly! Baker's Waterfalls is known for its stunning views of the park's rolling hills and open plains. It's easily accessible via a short hike from the park's entrance. The best times to visit are during sunrise and sunset for the most picturesque views. Is there anything else you'd like to know?
How do I reach Plains National Park by train?,"To provide accurate train information, could you please specify your departure location or the nearest major city?"
I'll be departing from Trinco.,"To provide accurate train information, could you please specify your departure location or the nearest major city?"
I'll be departing from Colombo,"Thank you. Trains from colombo to Trinco usually run daily. The nearest train station to the park is colombo, which is about 271 km away. Trains depart around 7:41 PM?4:30 AM and the journey takes approximately (8 hr 49 min). Remember that schedules may vary, so it's advisable to check closer to your travel date."
Can you provide details about camping facilities in trinco,"Of course! Nilaveli camp site offers camping facilities for visitors. There are designated camping areas with basic amenities such as restrooms and picnic tables. Camping permits are required, and reservations can be made through the park's official website. Would you like more information about camping fees or the reservation process?"
Tell me about camping fees.,"Camping fees in Plains National Park vary based on the type of camping, duration of stay, and the number of occupants. They typically range from $19. It's recommended to check the official park website for the most up-to-date information on fees and reservations."
Thank you for the information!,"You're welcome! If you have more questions or need assistance in the future, feel free to ask."
Tell me about the Colombo National Museum's opening hours.,"Colombo National Museum's is usually open from 8 a.m. to 10 p.m. However, it's a good idea to check their website for any updates or changes."
Stations ,Accident levels ,Hospital Types ,Peek / Unpeek,Ambulace Time duration (min)
Maradana,Mid,"Psychiatric hospital
",Peek,30
Ragama,Low,Dental hospital ,Unpeek,20
Gamapaha,Mid,Specialty hospital,Unpeek,43
Kelaniya,Mid,General medical & surgical hospitals,Peek,25
Galle,High,Dental hospital ,Peek,45
Kaluthara,Low,"Psychiatric hospital
",Unpeek,120
Nugeoda,Mid,General hospital,Unpeek,13
Mathara,Low,Clinic,Peek,62
Panadura,Mid,"Psychiatric hospital
",Unpeek,35
Aluthgama,Mid,Dental hospital ,Unpeek,147
Galle,Low,Ayurvedic hospital,Unpeek,75
Kelaniya,Hight,General medical & surgical hospitals,Peek,20
Mathara,Mid,"Psychiatric hospital
",Peek,10
Nugegoda,Mid,Clinic,Peek,45
Panadura,Mid,Specialty hospital,Peek,68
Maradana,Low,Ayurvedic hospital,Unpeek,12
Ragama,Mid,Dental hospital ,Peek,30
Gamapaha,Low,General hospital,Peek,20
Kaluthara,Low,General hospital,Unpeek,76
Aluthgama,Mid,Specialty hospital,Peek,84
Nugeoda,Low,"Psychiatric hospital
",Unpeek,43
Galle,Low,Dental hospital ,Unpeek,76
Panadura,Mid,Ayurvedic hospital,Unpeek,12
Mathara,Mid,Clinic,Peek,3
Ragama,Mid,General hospital,Unpeek,38
Gampaha,High,Genaral hospital,Unpeek,10
Kaluthara,Mid,Psychiatric hospital,Peek,5
Maradana,Low,Specialty hospital,Unpeek,25
Kelaniya,Mid,Genaral hospital,Peek,40
Kaluthara,Mid,Clinic,Unpeek,12
Gamapaha,Mid,Ayurvedic hospital,Unpeek,34
Mathara,Low,General medical & surgical hospitals,Peek,56
Ragama,Mid,"Psychiatric hospital
",Unpeek,67
Aluthgama,Mid,Specialty hospital,Peek,78
Galle,High,General hospital,Peek,13
Maradana,Mid,General hospital,Peek,34
Nuegoda,Low,Specialty hospital,Unpeek,66
Kelaniya,Mid,Ayurvedic hospital,Peek,35
Panadura,Low,General medical & surgical hospitals,Unpeek,18
Mathara,Low,General hospital,Peek,5
Kaluthara,High ,Ayurvedic hospital,Peek,12
Ragama,Mid,Dental hospital ,Peek,45
Kelaniya,Mid,"Psychiatric hospital
",Unpeek,78
Aluthgama,Mid,Specialty hospital,Peek,30
Maradana,Low,"Psychiatric hospital
",Peek,46
Gamapaha,Mid,General hospital,Unpeek,22
Galle,Low,General hospital,Unpeek,65
Nugegoda,Low,General medical & surgical hospitals,Peek,12
Panadura,High,Clinic,Peek,43
This diff is collapsed.
Station,Age ,Crowded,Disablity condition,Nationality,Occupation,Preferences
Badulla,20,0,0,Local,Medium,Mountains
Galle,26,1,0,Local,Medium,Beaches
Ihala kotte,22,0,0,Local,Medium,Mountains
Galle,30,1,0,Foreign,Medium,Beaches
Kandy,45,0,0,Local,Low,Religion places
Kandy,53,0,1,Local,High,Religion places
Bandarawela,25,0,0,Foreign,High,Mountains
Idalgashinna,26,0,0,Local,Medium,Mountains
Mathara,33,1,1,Local,Medium,Beaches
Idalgashinna,31,0,0,Local,Medium,Camping
Anuradapura,43,1,0,Local,Low,Religion places
Badulla,21,1,0,Local,Medium,Waterfalls
Ella,27,0,0,Local,Medium,Camping
Trincomalee,35,1,1,Local,High,Beaches
Trincomalee,50,1,1,Local,Low,Religion places
Puththalam,39,1,1,Local,Medium,Religion places
Puththalam,28,0,0,Local,High,Camping
Ella,22,1,0,Foreign,High,Mountains
Kandy,43,1,0,Foreign,High,Mountains
Kandy,32,1,1,Foreign,Medium,Religion places
Mathara,60,1,1,Local,Low,Beaches
Badulla,16,1,0,Local,Low,Waterfalls
Pattipola,27,1,0,Local,Medium,Camping
Pattipola,23,0,0,Foreign,Medium,Mountains
Trincomalee,47,1,0,Foreign,High,Beaches
Trincomalee,44,1,0,Foreign,High,Religion places
Mathale,28,0,0,Local,Medium,Mountains
Mathale,27,0,0,Local,Medium,Waterfalls
Mount Laviniya,23,1,0,Foreign,High,Beaches
Beruwala,39,1,0,Local,Medium,Beaches
Yapahuwa,40,1,0,Local,Medium,Religion places
Avissawella,31,0,0,Local,Low,Waterfalls
Anuradapura,37,1,0,Foreign,High,Wild life
Anuradapura,68,0,0,Local,Medium,Religion places
Mihinthale,50,0,0,Local,High,Religion places
Polgahawela,36,0,1,Local,Low,Religion places
Ihala kotte,47,1,0,Foreign,Medium,Mountains
Kadugannawa,35,1,0,Local,Medium,Mountains
Gampola,26,0,0,Local,Medium,Waterfalls
Badulla,31,0,0,Local,Medium,Camping
Mathara,21,1,0,Foreign,Medium,Beaches
Kekanadura,38,1,0,Local,Medium,Wild life
Beliatta,49,1,0,Foreign,High,Wild life
Puththalam,34,0,0,Local,Medium,Wild life
Jaffna,56,0,1,Local,Medium,Beaches
Jaffna,75,0,1,Local,High,Religion places
Jaffna,18,1,0,Local,Low,Beaches
Nanuoya,25,1,0,Local,Medium,Mountains
Nanuoya,43,0,0,Local,High,Camping
Nanuoya,39,1,0,Foreign,High,Camping
Great western,22,1,0,Local,Medium,Mountains
Great western,31,0,0,Local,High,Camping
Thalawakele,40,0,0,Foreign,Medium,Waterfalls
Great western,45,0,0,Foreign,High,Camping
Nanuoya,55,1,0,Local,Medium,Waterfalls
Abewela,16,1,0,Local,Medium,Mountains
Pattipola,20,0,0,Foreign,High,Mountains
Bandarawela,41,1,0,Local,Medium,Waterfalls
Badulla,80,0,1,Local,High,Religion places
Badulla,71,0,1,Local,Low,Religion places
Badulla,37,0,0,Foreign,High,Camping
Ella,28,0,0,Local,Medium,Camping
Habarana,33,1,0,Foreign,High,Wild life
Habarana,40,0,0,Local,High,Camping
Kelaniya,52,1,1,Local,Low,Religion places
Kelaniya,47,0,0,Local,Medium,Religion places
Kanthale,29,0,0,Local,High,Wild life
Kanthale,53,1,0,Foreign,High,Wild life
Trincomalee,44,1,0,Foreign,Medium,Religion places
Gampaha,43,1,1,Local,Low,Religion places
Chilaw,36,1,1,Local,Low,Beaches
Ragama,59,1,0,Local,Medium,Religion places
Colombo fort,25,1,0,Local,Medium,Beaches
Wellawatte,23,1,0,Local,Low,Beaches
Wellawatte,38,1,0,Local,Medium,Beaches
Mount Laviniya,48,1,1,Local,Medium,Beaches
Kaluthara,29,1,0,Local,Medium,Religion places
Kaluthara,33,1,0,Foreign,High,Religion places
Kaluthara,20,1,0,Local,Medium,Beaches
Wattegama,51,0,0,Local,Low,Waterfalls
Haputhale,39,1,0,Foreign,High,Mountains
Diyathalawa,20,0,1,Local,High,Camping
Haputhale,42,1,0,Foreign,Medium,Waterfalls
Idalgashinna,30,0,0,Foreign,High,Camping
Idalgashinna,15,1,0,Local,Low,Waterfalls
Kelaniya,33,0,1,Local,Low,Religion places
Ohiya,24,0,0,Foreign,High,Mountains
Pattipola,30,1,0,Local,Medium,Waterfalls
Perakumpura,23,0,0,Local,Medium,Waterfalls
Nanuoya,27,0,0,Local,Low,Waterfalls
Kotagala,48,0,0,Local,Medium,Waterfalls
Ragama,26,1,1,Local,Medium,Religion places
Veyangoda,60,0,1,Local,Medium,Religion places
Palavi,70,0,1,Local,Low,Beaches
Puththalam,43,0,0,Foreign,High,Wild life
Jaffna,47,1,0,Local,Medium,Religion places
Kaluthara,33,1,0,Local,High,Beaches
Beruwala,54,1,1,Local,Medium,Beaches
Beliatta,58,1,0,Local,High,Wild life
Padukka,30,1,1,Local,Medium,Wild life
Arukwatta,25,1,0,Local,Medium,Wild life
Puwakpitiya,51,0,0,Local,Medium,Waterfalls
Gangoda,29,0,0,Local,Medium,Waterfalls
Balana,38,0,0,Local,Medium,Mountains
Sarasavi uyana,24,0,0,Local,Medium,Mountains
Kandy,28,1,0,Foreign,High,Religion places
Kandy,32,0,0,Local,Medium,Mountains
Demodara,40,1,0,Foreign,Medium,Mountains
Demodara,26,1,0,Local,Medium,Waterfalls
Bandarawela,37,0,0,Foreign,Medium,Waterfalls
Anuradapura,30,1,0,Local,High,Religion places
Benthota,27,1,0,Foreign,High,Beaches
Hikkaduwa,39,1,0,Foreign,High,Beaches
Kahawa,59,1,1,Local,Medium,Beaches
Unawatuna,24,1,0,Local,Medium,Beaches
Unawatuna,56,1,0,Foreign,High,Beaches
Talpe,60,1,1,Local,Medium,Beaches
Talpe,22,1,0,Foreign,High,Beaches
Koggala,24,1,1,Local,Low,Beaches
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
CLIENT,FROM,TO,NO. OF PASSANGERS,TIME,TRAIN NUMBER ,BUDGET,CLASS,LATE,SEAT Availblility
Ann,Colombo,Maradana,1,Morning,8055,High,1st,1,1
Kasun,Colombo,Gampaha,2,Afternoon,1132,Mid,2nd,0,1
Wasantha,Colombo,Polgahawela Junction,3,Evening,1173,Low,3rd,1,1
Hirusha,Colombo,Rambukkana,4,Night,1125,High,1st,1,1
Kavini,Colombo,Kadugannawa ,5,Morning,1005,Low,3rd,0,1
Sithum,Colombo,Hatton,6,Afternoon,1023,Mid,3rd,0,0
Saman,Colombo,Dematagoda,2,Night,1196,Low,3rd,0,0
Kamal,Colombo,Kelaniya,2,Morning,3406,Low,3rd,0,1
Sajith,Colombo,Wanawasala,5,Morning,1132,High,1st,0,1
Imasha,Colombo,Hunupitiya,4,Night,1194,Low,3rd,1,1
Rashmi,Colombo,Negambo,3,Morning,3411,High,1st,1,0
Isuru,Colombo,Horape,1,Morning,3406,Low,3rd,1,1
Indika,Colombo,Ragama Junction,2,Afternoon,1172,Low,3rd,1,0
Chathura,Colombo,Walpola,3,Night,1196,Low,3rd,1,1
Lajith,Colombo,Batuwaththa,1,Night,1191,Low,3rd,1,0
Sajeer,Colombo,Bulugahagoda,1,Morning,1109,Low,3rd,0,0
Abdul,Colombo,Ganemulla,2,Afternoon,1150,Mid,2nd,0,0
Jennifer,Colombo,Yagoda,3,Afternoon,1147,Mid,3rd,0,1
Karan,Colombo,Daraluwa,3,Night,1196,Mid,3rd,1,1
Sutharshan,Colombo,Ambepussa,1,Morning,1135,Mid,3rd,1,1
Lakshmi,Colombo,Magalegoda,1,Afternoon,1144,Mid,3rd,1,1
Dhammika,Colombo,Heendeniya Pattiyagoda,1,Morning,1124,Mid,2nd,1,1
Varuna ,Colombo,Veyangoda,1,Morning,1109,Mid,2nd,0,1
Malki,Colombo,wadduwa,1,Morning,8710,Low,3rd,0,0
Rasik,Colombo,Keenawala,1,Afternoon,1150,Low,3rd,0,0
Fathima,Colombo,Meerigama,1,Morning,1133,Low,3rd,0,0
Parvathi,Colombo,Ganegoda,1,Evening,1168,Low,3rd,0,1
Arjuna,Colombo,Wijaya Rajadahana,1,Night,1196,Low,3rd,1,1
Nirosha,Colombo,Meerigama,1,Morning,1125,High,1st,1,0
Rani,Colombo,Wellawatta,1,Afternoon,8716,Mid,3rd,0,0
Thejan,Colombo,Beruwala,3,Morning,8742,Mid,3rd,1,1
Samantha,Colombo,Ambepussa,2,Night,1192,Low,3rd,1,1
Fasna,Colombo,Watagoda,2,Morning,1005,Low,3rd,0,0
Tharangee,Colombo,Alawwa,1,Afternoon,1144,Low,3rd,0,0
Sandunil,Colombo,Hikkaduwa,1,Morning,8050,Low,3rd,0,1
Arosh,Colombo,Polgahawela Junction,2,Morning,1130,Low,3rd,0,0
Achini,Colombo,Jaffna,2,Night,4089,Mid,3rd,0,1
Bandara,Colombo,Walpola,1,Afternoon,1147,Mid,3rd,1,0
Mohomad,Colombo,Mirissa,1,Night,8766,High,1st,1,1
Nazrina,Colombo,Yatagama,1,Morning,1136,Mid,2nd,1,0
Chamath,Colombo,Kadigamuwa,1,Morning,1141,Mid,2nd,1,1
Kavindya,Colombo,Aluthgama,1,Morning,8742,Mid,2nd,0,0
Hiruni,Colombo,Gangoda,1,Morning,1124,Low,3rd,1,0
Madapatha,Colombo,Ihala Kotte,2,Afternoon,1019,Low,3rd,1,0
Charana,Colombo,Bandarawela,2,Morning,1007,Low,3rd,1,0
Sapumal,Colombo,Wallawatta,2,Evening,4078,Low,3rd,1,1
Janith,Colombo,Balana,2,Morning,1019,Low,3rd,0,1
Mahesh,Colombo,Galle,2,Afternoon,8056,Low,3rd,0,1
Anjana,Colombo,Kotagala,3,Night,1045,Low,3rd,0,1
Pathum,Colombo,Ella,1,Night,1045,Low,3rd,0,1
Jeewan,Colombo,Pilimatalawa,1,Morning,1005,Low,3rd,1,1
Kanthilatha,Colombo,Kalutara South,1,Morning,8060,Low,3rd,1,1
Madushan,Colombo,batticaloa,1,Morning,6011,Mid,2nd,1,1
Somasiri,Colombo,Peradeniya Junction,4,Night,1045,Mid,3rd,1,0
Harischandra,Colombo,Koshinna,2,Afternoon,1023,Mid,3rd,0,0
Malkanthi,Colombo,Gelioya,1,Morning,1005,Mid,3rd,0,1
Thisen,Colombo,Matara,2,Evening,8766,Mid,3rd,0,1
Hirushi,Colombo,Weligama,2,Afternoon,8086,Mid,3rd,0,1
Shanaka,Colombo,Awissawella,2,Morning,9271,Mid,2nd,0,1
Karunathilaka,Colombo,Panadura,3,Morning,8717,Mid,3rd,1,0
Wandabona,Colombo,Nawalapitiya,1,Night,1045,Mid,3rd,1,0
Ruwan,Colombo,Gampola,3,Morning,1015,Mid,3rd,0,0
Kanchana,Colombo,Bulugahagoda,1,Morning,1124,Mid,3rd,0,1
Sugandhika,Colombo,Katunayake,2,Evening,3428,Mid,3rd,0,1
Anjalee,Colombo,Seeduwa,1,Evening,3428,Low,3rd,0,1
Regi,Colombo,Ulapane,1,Night,1045,Low,3rd,1,0
Kumari,Colombo,Kottawa,1,Night,9271,Low,3rd,1,1
Sampath,Colombo,Abanpola,1,Afternoon,4085,Low,3rd,0,1
Medha,Colombo,Nawalapitiya,1,Night,1045,Low,3rd,0,1
Gajanayaka,Colombo,Kankesanthurai,1,Morning,4077,High,1st,1,1
Kaveen,Colombo,Cotta,1,Evening,9260,High,1st,1,1
Tharushi,Colombo,Inguruoya,1,Night,1046,High,1st,1,1
Thisari,Colombo,Bentota,1,Afternoon,8056,Mid,3rd,1,0
Senuri,Colombo,Galboda,1,Afternoon,1015,Mid,3rd,1,0
Zara,Colombo,Wellawa,1,Morning,4093,Mid,3rd,1,0
Keshan,Colombo,Galgamuwa,1,Afternoon,4003,High,1st,1,1
Himali,Colombo,Watawala,1,Afternoon,1023,Mid,3rd,1,1
Wijesena,Colombo,Kirulapana,2,Evening,9268,High,1st,0,1
Kapila,Colombo,Rosella,2,Afternoon,1023,High,1st,0,1
Raj,Colombo,Kosgama,2,Night,9271,Mid,3rd,0,1
Abhishek,Colombo,Kotagala,3,Evening,1023,Mid,2nd,0,1
Priyantha,Colombo,Mannar,2,Morning,5452,Mid,2nd,1,1
Pavani,Colombo,Thalawakelle,4,Morning,1015,Low,3rd,1,1
Nithasha,Colombo,Watagoda,2,Morning,1005,Low,3rd,1,1
Gunawardhana,Colombo,Great Western,5,Afternoon,1023,Low,3rd,1,0
Rohan,Colombo,Mannar,2,Morning,5452,Low,3rd,0,0
Naleen,Colombo,Nanu Oya,4,Afternoon,1023,Low,3rd,0,0
Alponsu,Colombo,Vavuniya,1,Morning,4077,Low,3rd,0,1
Chamith,Colombo,Ambewela,5,Night,1045,Low,3rd,0,1
Madura,Colombo,Pattipola,5,Night,1045,Low,3rd,0,1
Dias,Colombo,Ohiya,3,Night,1045,Low,3rd,0,1
Brian,Colombo,Idalgashinna,2,Morning,1005,Low,3rd,0,1
Mahesh,Colombo,Ja ela,1,Morning,3404,Mid,2nd,0,1
Pathum,Colombo,Haputale,5,Morning,1001,Mid,3rd,1,0
Gomaz,Colombo,Diyatalawa,5,Morning,1007,Mid,3rd,1,0
Kaveesha,Colombo,Bandarawela,6,Night,1045,Mid,3rd,0,0
Nelum,Colombo,Kinigama,1,Evening,1007,Mid,2nd,0,0
Pravini,Colombo,Kadugannawa,1,Evening,1037,Low,3rd,1,1
Sarath,Colombo,Puttalama,1,Morning,3404,Low,3rd,1,1
Chriss,Colombo,Ella,4,Night,1045,Low,3rd,1,1
Gunadhasa,Colombo,Demodara,6,Night,1045,Low,3rd,1,1
Saveesha,Colombo,Uduwara,1,Morning,1015,Low,3rd,0,1
Perera,Colombo,Hali-Ela,1,Morning,1005,Mid,3rd,0,0
Suzan,Colombo,Badulla,5,Morning,1005,Mid,3rd,1,1
This diff is collapsed.
{
"name": "Railway_mobile_application",
"lockfileVersion": 3,
"requires": true,
"packages": {}
}
Stations ,Accident levels ,Hospital Types ,Peek / Unpeek,Ambulace Time duration (min)
Maradana,Mid,"Psychiatric hospital
",Peek,30
Ragama,Low,Dental hospital ,Unpeek,20
Gamapaha,Mid,Specialty hospital,Unpeek,43
Kelaniya,Mid,General medical & surgical hospitals,Peek,25
Galle,High,Dental hospital ,Peek,45
Kaluthara,Low,"Psychiatric hospital
",Unpeek,120
Nugeoda,Mid,General hospital,Unpeek,13
Mathara,Low,Clinic,Peek,62
Panadura,Mid,"Psychiatric hospital
",Unpeek,35
Aluthgama,Mid,Dental hospital ,Unpeek,147
Galle,Low,Ayurvedic hospital,Unpeek,75
Kelaniya,Hight,General medical & surgical hospitals,Peek,20
Mathara,Mid,"Psychiatric hospital
",Peek,10
Nugegoda,Mid,Clinic,Peek,45
Panadura,Mid,Specialty hospital,Peek,68
Maradana,Low,Ayurvedic hospital,Unpeek,12
Ragama,Mid,Dental hospital ,Peek,30
Gamapaha,Low,General hospital,Peek,20
Kaluthara,Low,General hospital,Unpeek,76
Aluthgama,Mid,Specialty hospital,Peek,84
Nugeoda,Low,"Psychiatric hospital
",Unpeek,43
Galle,Low,Dental hospital ,Unpeek,76
Panadura,Mid,Ayurvedic hospital,Unpeek,12
Mathara,Mid,Clinic,Peek,3
Ragama,Mid,General hospital,Unpeek,38
Gampaha,High,Genaral hospital,Unpeek,10
Kaluthara,Mid,Psychiatric hospital,Peek,5
Maradana,Low,Specialty hospital,Unpeek,25
Kelaniya,Mid,Genaral hospital,Peek,40
Kaluthara,Mid,Clinic,Unpeek,12
Gamapaha,Mid,Ayurvedic hospital,Unpeek,34
Mathara,Low,General medical & surgical hospitals,Peek,56
Ragama,Mid,"Psychiatric hospital
",Unpeek,67
Aluthgama,Mid,Specialty hospital,Peek,78
Galle,High,General hospital,Peek,13
Maradana,Mid,General hospital,Peek,34
Nuegoda,Low,Specialty hospital,Unpeek,66
Kelaniya,Mid,Ayurvedic hospital,Peek,35
Panadura,Low,General medical & surgical hospitals,Unpeek,18
Mathara,Low,General hospital,Peek,5
Kaluthara,High ,Ayurvedic hospital,Peek,12
Ragama,Mid,Dental hospital ,Peek,45
Kelaniya,Mid,"Psychiatric hospital
",Unpeek,78
Aluthgama,Mid,Specialty hospital,Peek,30
Maradana,Low,"Psychiatric hospital
",Peek,46
Gamapaha,Mid,General hospital,Unpeek,22
Galle,Low,General hospital,Unpeek,65
Nugegoda,Low,General medical & surgical hospitals,Peek,12
Panadura,High,Clinic,Peek,43
Station,Age ,Crowded,Disablity condition,Nationality,Occupation,Preferences
Badulla,20,0,0,Local,Medium,Mountains
Galle,26,1,0,Local,Medium,Beaches
Ihala kotte,22,0,0,Local,Medium,Mountains
Galle,30,1,0,Foreign,Medium,Beaches
Kandy,45,0,0,Local,Low,Religion places
Kandy,53,0,1,Local,High,Religion places
Bandarawela,25,0,0,Foreign,High,Mountains
Idalgashinna,26,0,0,Local,Medium,Mountains
Mathara,33,1,1,Local,Medium,Beaches
Idalgashinna,31,0,0,Local,Medium,Camping
Anuradapura,43,1,0,Local,Low,Religion places
Badulla,21,1,0,Local,Medium,Waterfalls
Ella,27,0,0,Local,Medium,Camping
Trincomalee,35,1,1,Local,High,Beaches
Trincomalee,50,1,1,Local,Low,Religion places
Puththalam,39,1,1,Local,Medium,Religion places
Puththalam,28,0,0,Local,High,Camping
Ella,22,1,0,Foreign,High,Mountains
Kandy,43,1,0,Foreign,High,Mountains
Kandy,32,1,1,Foreign,Medium,Religion places
Mathara,60,1,1,Local,Low,Beaches
Badulla,16,1,0,Local,Low,Waterfalls
Pattipola,27,1,0,Local,Medium,Camping
Pattipola,23,0,0,Foreign,Medium,Mountains
Trincomalee,47,1,0,Foreign,High,Beaches
Trincomalee,44,1,0,Foreign,High,Religion places
Mathale,28,0,0,Local,Medium,Mountains
Mathale,27,0,0,Local,Medium,Waterfalls
Mount Laviniya,23,1,0,Foreign,High,Beaches
Beruwala,39,1,0,Local,Medium,Beaches
Yapahuwa,40,1,0,Local,Medium,Religion places
Avissawella,31,0,0,Local,Low,Waterfalls
Anuradapura,37,1,0,Foreign,High,Wild life
Anuradapura,68,0,0,Local,Medium,Religion places
Mihinthale,50,0,0,Local,High,Religion places
Polgahawela,36,0,1,Local,Low,Religion places
Ihala kotte,47,1,0,Foreign,Medium,Mountains
Kadugannawa,35,1,0,Local,Medium,Mountains
Gampola,26,0,0,Local,Medium,Waterfalls
Badulla,31,0,0,Local,Medium,Camping
Mathara,21,1,0,Foreign,Medium,Beaches
Kekanadura,38,1,0,Local,Medium,Wild life
Beliatta,49,1,0,Foreign,High,Wild life
Puththalam,34,0,0,Local,Medium,Wild life
Jaffna,56,0,1,Local,Medium,Beaches
Jaffna,75,0,1,Local,High,Religion places
Jaffna,18,1,0,Local,Low,Beaches
Nanuoya,25,1,0,Local,Medium,Mountains
Nanuoya,43,0,0,Local,High,Camping
Nanuoya,39,1,0,Foreign,High,Camping
Great western,22,1,0,Local,Medium,Mountains
Great western,31,0,0,Local,High,Camping
Thalawakele,40,0,0,Foreign,Medium,Waterfalls
Great western,45,0,0,Foreign,High,Camping
Nanuoya,55,1,0,Local,Medium,Waterfalls
Abewela,16,1,0,Local,Medium,Mountains
Pattipola,20,0,0,Foreign,High,Mountains
Bandarawela,41,1,0,Local,Medium,Waterfalls
Badulla,80,0,1,Local,High,Religion places
Badulla,71,0,1,Local,Low,Religion places
Badulla,37,0,0,Foreign,High,Camping
Ella,28,0,0,Local,Medium,Camping
Habarana,33,1,0,Foreign,High,Wild life
Habarana,40,0,0,Local,High,Camping
Kelaniya,52,1,1,Local,Low,Religion places
Kelaniya,47,0,0,Local,Medium,Religion places
Kanthale,29,0,0,Local,High,Wild life
Kanthale,53,1,0,Foreign,High,Wild life
Trincomalee,44,1,0,Foreign,Medium,Religion places
Gampaha,43,1,1,Local,Low,Religion places
Chilaw,36,1,1,Local,Low,Beaches
Ragama,59,1,0,Local,Medium,Religion places
Colombo fort,25,1,0,Local,Medium,Beaches
Wellawatte,23,1,0,Local,Low,Beaches
Wellawatte,38,1,0,Local,Medium,Beaches
Mount Laviniya,48,1,1,Local,Medium,Beaches
Kaluthara,29,1,0,Local,Medium,Religion places
Kaluthara,33,1,0,Foreign,High,Religion places
Kaluthara,20,1,0,Local,Medium,Beaches
Wattegama,51,0,0,Local,Low,Waterfalls
Haputhale,39,1,0,Foreign,High,Mountains
Diyathalawa,20,0,1,Local,High,Camping
Haputhale,42,1,0,Foreign,Medium,Waterfalls
Idalgashinna,30,0,0,Foreign,High,Camping
Idalgashinna,15,1,0,Local,Low,Waterfalls
Kelaniya,33,0,1,Local,Low,Religion places
Ohiya,24,0,0,Foreign,High,Mountains
Pattipola,30,1,0,Local,Medium,Waterfalls
Perakumpura,23,0,0,Local,Medium,Waterfalls
Nanuoya,27,0,0,Local,Low,Waterfalls
Kotagala,48,0,0,Local,Medium,Waterfalls
Ragama,26,1,1,Local,Medium,Religion places
Veyangoda,60,0,1,Local,Medium,Religion places
Palavi,70,0,1,Local,Low,Beaches
Puththalam,43,0,0,Foreign,High,Wild life
Jaffna,47,1,0,Local,Medium,Religion places
Kaluthara,33,1,0,Local,High,Beaches
Beruwala,54,1,1,Local,Medium,Beaches
Beliatta,58,1,0,Local,High,Wild life
Padukka,30,1,1,Local,Medium,Wild life
Arukwatta,25,1,0,Local,Medium,Wild life
Puwakpitiya,51,0,0,Local,Medium,Waterfalls
Gangoda,29,0,0,Local,Medium,Waterfalls
Balana,38,0,0,Local,Medium,Mountains
Sarasavi uyana,24,0,0,Local,Medium,Mountains
Kandy,28,1,0,Foreign,High,Religion places
Kandy,32,0,0,Local,Medium,Mountains
Demodara,40,1,0,Foreign,Medium,Mountains
Demodara,26,1,0,Local,Medium,Waterfalls
Bandarawela,37,0,0,Foreign,Medium,Waterfalls
Anuradapura,30,1,0,Local,High,Religion places
Benthota,27,1,0,Foreign,High,Beaches
Hikkaduwa,39,1,0,Foreign,High,Beaches
Kahawa,59,1,1,Local,Medium,Beaches
Unawatuna,24,1,0,Local,Medium,Beaches
Unawatuna,56,1,0,Foreign,High,Beaches
Talpe,60,1,1,Local,Medium,Beaches
Talpe,22,1,0,Foreign,High,Beaches
Koggala,24,1,1,Local,Low,Beaches
import json , time
from flask import Flask, jsonify, request, make_response
from flask_cors import CORS
import requests
import shutil
import numpy as np
import os
import pickle
import math
with open('chatbot_model.dat' , 'rb') as f:
math_chatbot_model = pickle.load(f)
app = Flask(__name__)
@app.after_request
def after_request(response):
response.headers.add('Access-Control-Allow-Origin', '*')
response.headers.add('Access-Control-Allow-Headers', 'Content-Type,Authorization')
response.headers.add('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE,OPTIONS')
return response
@app.route('/chatbot', methods=['POST'])
def chatbot():
try:
request_data = request.get_json()
text = str(request_data['text'])
print(text)
print(request_data)
res_text = math_chatbot_model.predict([text])
json_dump = json.dumps({"res_text":str(res_text[0]),"success":"true"})
return json_dump
except:
json_dump = json.dumps({"success":"false"})
return json_dump
if __name__ == '__main__':
app.run(host="0.0.0.0", port=2222)
\ No newline at end of file
import json , time
from flask import Flask, jsonify, request, make_response
from flask_cors import CORS
import requests
import shutil
import numpy as np
import os
import pickle
import math
import pandas as pd
from sklearn.metrics import accuracy_score
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import OneHotEncoder, LabelEncoder
from sklearn.compose import ColumnTransformer
from sklearn.ensemble import RandomForestRegressor
from sklearn.metrics import mean_squared_error
import datetime
import numpy as np
import random
df = pd.read_csv('Immergency Railway system.csv')
X = df[['Stations ','Accident levels ','Hospital Types ','Peek / Unpeek']]
y = df[['Ambulace Time duration (min)']]
cat_features = ['Stations ','Accident levels ','Hospital Types ','Peek / Unpeek']
preprocessor = ColumnTransformer(
transformers=[('encoder', OneHotEncoder(handle_unknown='ignore'), cat_features)],
remainder='passthrough')
label_encoder = LabelEncoder()
y['Ambulace Time duration (min)'] = label_encoder.fit_transform(y['Ambulace Time duration (min)'])
ambulance = [{'vehicle':'LW - 1257','phone':'071-832 0320','driver':'SMR PERERA'}, {'vehicle':'LW - 1257','phone':'071-832 0320','driver':'SMR PERERA'}, {'vehicle':'LW - 1257','phone':'071-832 0320','driver':'SMR PERERA'}, {'vehicle':'LW - 1257','phone':'071-832 0320','driver':'SMR PERERA'}, {'vehicle':'LW - 1257','phone':'071-832 0320','driver':'SMR PERERA'}, {'vehicle':'LW - 1257','phone':'071-832 0320','driver':'SMR PERERA'}, {'vehicle':'LW - 1257','phone':'071-832 0320','driver':'SMR PERERA'}]
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.25, random_state=42)
X_train_encoded = preprocessor.fit_transform(X_train)
X_test_encoded = preprocessor.transform(X_test)
X_train = preprocessor.fit_transform(X_train)
X_test = preprocessor.transform(X_test)
model = RandomForestRegressor(random_state=42)
model.fit(X_train, y_train)
app = Flask(__name__)
@app.after_request
def after_request(response):
response.headers.add('Access-Control-Allow-Origin', '*')
response.headers.add('Access-Control-Allow-Headers', 'Content-Type,Authorization')
response.headers.add('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE,OPTIONS')
return response
@app.route('/immergency', methods=['POST'])
def immergency():
request_data = request.get_json()
x1 = str(request_data['stations'])
x2 = str(request_data['levels'])
x3 = str(request_data['types'])
x4 = str(request_data['peek'])
data=preprocessor.transform(pd.DataFrame([[x1,x2,x3,x4]], columns=['Stations ','Accident levels ','Hospital Types ','Peek / Unpeek']))
new_data=model.predict(data)
results=label_encoder.inverse_transform(np.round(new_data).astype(int))[0]
data=random.choice(ambulance)
json_dump = json.dumps({"results":str(results),'vehicle':data['vehicle'],'phone':data['phone'],'driver':data['driver'],"success":"true"})
return json_dump
if __name__ == '__main__':
app.run(host="0.0.0.0", port=3333)
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
flask
flask_cors
pandas
scikit-learn
requests
#pip install -r requirements.txt
This diff is collapsed.
/node_modules
/public/hot
/public/storage
/storage/*.key
/vendor
.env
.env.backup
.phpunit.result.cache
Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
/.expo
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment