Spaces:
Runtime error
Runtime error
Upload app.py with huggingface_hub
Browse files23 unmodified lines242526272829303132333435363738394041424384 unmodified lines12812913013113213313423 unmodified lines'Product_Sugar_Content_Low Sugar', 'Product_Sugar_Content_No Sugar','Product_Sugar_Content_Regular', 'Product_Type_Baking Goods','Product_Type_Breads', 'Product_Type_Breakfast', 'Product_Type_Canned','Product_Type_Dairy', 'Product_Type_Frozen Foods','Product_Type_Fruits and Vegetables','Product_Type_Hard Drinks','Product_Type_Health and Hygiene','Product_Type_Household', 'Product_Type_Meat','Product_Type_Others', 'Product_Type_Seafood','Product_Type_Snack Foods', 'Product_Type_Soft Drinks','Product_Type_Starchy Foods', 'Store_Size_High','Store_Size_Low', 'Store_Size_Medium','Store_Location_City_Type_Tier 1','Store_Location_City_Type_Tier 2','Store_Location_City_Type_Tier 3','Store_Type_Departmental Store', 'Store_Type_Food Mart','Store_Type_Supermarket Type1', 'Store_Type_Supermarket Type2']# Based on the kernel state, X has 31 columns. You must update the above list to match your actual X.columns.tolist()84 unmodified lines# --- To run the Flask app (for local testing) ---# For Colab, you typically run it using ngrok or similar, or deploy directly.# This block is commented out because it would block the Colab environment.if __name__ == '__main__':app.run(debug=True)print("Flask app code for backend created. You will need to run this code and potentially expose it via a service like ngrok or deploy it to a platform like Hugging Face Spaces.")23 unmodified lines2425262728293031323334353637383940414243444546474849505184 unmodified lines13613713813914014114223 unmodified lines'Product_Sugar_Content_Low Sugar', 'Product_Sugar_Content_No Sugar','Product_Sugar_Content_Regular', 'Product_Type_Baking Goods','Product_Type_Breads', 'Product_Type_Breakfast', 'Product_Type_Canned','Product_Type_Dairy','Product_Type_Frozen Foods','Product_Type_Fruits and Vegetables','Product_Type_Hard Drinks','Product_Type_Health and Hygiene','Product_Type_Household','Product_Type_Meat','Product_Type_Others','Product_Type_Seafood','Product_Type_Snack Foods','Product_Type_Soft Drinks','Product_Type_Starchy Foods','Store_Size_High','Store_Size_Low','Store_Size_Medium','Store_Location_City_Type_Tier 1','Store_Location_City_Type_Tier 2','Store_Location_City_Type_Tier 3','Store_Type_Departmental Store','Store_Type_Food Mart','Store_Type_Supermarket Type1','Store_Type_Supermarket Type2']# Based on the kernel state, X has 31 columns. You must update the above list to match your actual X.columns.tolist()84 unmodified lines# --- To run the Flask app (for local testing) ---# For Colab, you typically run it using ngrok or similar, or deploy directly.# This block is commented out because it would block the Colab environment.if __name__ == '__main__':app.run(debug=True)print("Flask app code for backend created. You will need to run this code and potentially expose it via a service like ngrok or deploy it to a platform like Hugging Face Spaces.")
app.py+18-10