ikoghoemmanuell
commited on
Commit
•
b6fd487
1
Parent(s):
1f38130
Update app.py
Browse files
app.py
CHANGED
@@ -63,15 +63,15 @@ if choice == 'Home':
|
|
63 |
|
64 |
st.markdown('Enter the required information to forecast sales:')
|
65 |
|
66 |
-
|
67 |
-
# Input form
|
68 |
-
col1, col2 = st.columns(2)
|
69 |
-
|
70 |
Store_type = ["Supermarket", "Department Store", "Convenience Store", "Pharmacy", "Clothing Store", "Electronics Store", "Furniture Store", "Hardware Store", "Bookstore", "Jewelry Store", "Toy Store", "Pet Store", "Sporting Goods Store", "Shoe Store", "Dollar Store", "Liquor Store", "Beauty Supply Store", "Home Improvement Store", "Stationery Store", "Gift Shop", "Bakery", "Butcher Shop", "Fish Market", "Vegetable Market", "Farmers Market", "Coffee Shop", "Café", "Restaurant", "Fast Food Restaurant", "Pizza Place", "Burger Joint", "Ice Cream Shop", "Food Truck", "Bar", "Pub", "Nightclub", "Gas Station", "Car Dealership", "Auto Repair Shop", "Car Wash", "Bank", "ATM", "Post Office", "Laundry", "Hair Salon", "Nail Salon", "Spa", "Gym", "Yoga Studio", "Movie Theater", "Bowling Alley", "Arcade", "Museum", "Art Gallery"]
|
71 |
-
|
72 |
cities = ["Lagos", "Abuja", "Kano", "Ibadan", "Kaduna", "Port Harcourt", "Benin City", "Maiduguri", "Zaria", "Aba", "Jos", "Ilorin", "Oyo", "Enugu", "Abeokuta", "Onitsha", "Warri", "Sokoto", "Calabar", "Katsina", "Akure", "Bauchi"]
|
73 |
clusters = ["Fashion", "Electronics", "Supermarket", "Home Improvement", "Department Store","Pharmacy", "Furniture", "Sports Goods", "Jewelry", "Cosmetics", "Automotive","Bookstore", "Toy Store", "Pet Store", "Convenience Store", "Hardware Store","Outdoor Recreation"]
|
74 |
categories = ["Apparel", "Beauty", "Books", "Electronics", "Furniture", "Grocery", "Health", "Home", "Jewelry", "Kitchen", "Music", "Office", "Outdoors", "Pets", "Shoes", "Sports", "Toys", "Automotive", "Baby", "Computers", "Garden", "Movies", "Tools", "Watches", "Appliances", "Cameras", "Fitness", "Industrial", "Luggage", "Software", "Video Games", "Cell Phones", "Home Improvement"]
|
|
|
|
|
|
|
75 |
|
76 |
with col1:
|
77 |
start_date = st.date_input("Start Date")
|
@@ -86,7 +86,7 @@ if choice == 'Home':
|
|
86 |
|
87 |
with col2:
|
88 |
selected_store = st.selectbox("Store_type", Store_type)
|
89 |
-
selected_store1 = st.selectbox("Store_id",
|
90 |
selected_city = st.selectbox("City", cities)
|
91 |
selected_cluster = st.selectbox("Cluster", clusters)
|
92 |
|
|
|
63 |
|
64 |
st.markdown('Enter the required information to forecast sales:')
|
65 |
|
66 |
+
# defining input parameters
|
|
|
|
|
|
|
67 |
Store_type = ["Supermarket", "Department Store", "Convenience Store", "Pharmacy", "Clothing Store", "Electronics Store", "Furniture Store", "Hardware Store", "Bookstore", "Jewelry Store", "Toy Store", "Pet Store", "Sporting Goods Store", "Shoe Store", "Dollar Store", "Liquor Store", "Beauty Supply Store", "Home Improvement Store", "Stationery Store", "Gift Shop", "Bakery", "Butcher Shop", "Fish Market", "Vegetable Market", "Farmers Market", "Coffee Shop", "Café", "Restaurant", "Fast Food Restaurant", "Pizza Place", "Burger Joint", "Ice Cream Shop", "Food Truck", "Bar", "Pub", "Nightclub", "Gas Station", "Car Dealership", "Auto Repair Shop", "Car Wash", "Bank", "ATM", "Post Office", "Laundry", "Hair Salon", "Nail Salon", "Spa", "Gym", "Yoga Studio", "Movie Theater", "Bowling Alley", "Arcade", "Museum", "Art Gallery"]
|
68 |
+
Store_id = ['Store_' + str(i) for i in range(0, 5)]
|
69 |
cities = ["Lagos", "Abuja", "Kano", "Ibadan", "Kaduna", "Port Harcourt", "Benin City", "Maiduguri", "Zaria", "Aba", "Jos", "Ilorin", "Oyo", "Enugu", "Abeokuta", "Onitsha", "Warri", "Sokoto", "Calabar", "Katsina", "Akure", "Bauchi"]
|
70 |
clusters = ["Fashion", "Electronics", "Supermarket", "Home Improvement", "Department Store","Pharmacy", "Furniture", "Sports Goods", "Jewelry", "Cosmetics", "Automotive","Bookstore", "Toy Store", "Pet Store", "Convenience Store", "Hardware Store","Outdoor Recreation"]
|
71 |
categories = ["Apparel", "Beauty", "Books", "Electronics", "Furniture", "Grocery", "Health", "Home", "Jewelry", "Kitchen", "Music", "Office", "Outdoors", "Pets", "Shoes", "Sports", "Toys", "Automotive", "Baby", "Computers", "Garden", "Movies", "Tools", "Watches", "Appliances", "Cameras", "Fitness", "Industrial", "Luggage", "Software", "Video Games", "Cell Phones", "Home Improvement"]
|
72 |
+
|
73 |
+
# Input form
|
74 |
+
col1, col2 = st.columns(2)
|
75 |
|
76 |
with col1:
|
77 |
start_date = st.date_input("Start Date")
|
|
|
86 |
|
87 |
with col2:
|
88 |
selected_store = st.selectbox("Store_type", Store_type)
|
89 |
+
selected_store1 = st.selectbox("Store_id", Store_id)
|
90 |
selected_city = st.selectbox("City", cities)
|
91 |
selected_cluster = st.selectbox("Cluster", clusters)
|
92 |
|