Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,6 +55,14 @@ def logout_user(email):
|
|
| 55 |
del active_sessions[email]
|
| 56 |
return "Logged out successfully!"
|
| 57 |
return "No active session found for this email."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
|
| 59 |
# Function to filter menu items based on preference
|
| 60 |
def filter_menu(preference):
|
|
|
|
| 55 |
del active_sessions[email]
|
| 56 |
return "Logged out successfully!"
|
| 57 |
return "No active session found for this email."
|
| 58 |
+
# Function to load the menu data
|
| 59 |
+
def load_menu():
|
| 60 |
+
menu_file = "menu.xlsx" # Ensure this file exists in the same directory
|
| 61 |
+
try:
|
| 62 |
+
return pd.read_excel(menu_file)
|
| 63 |
+
except Exception as e:
|
| 64 |
+
raise ValueError(f"Error loading menu file: {e}")
|
| 65 |
+
|
| 66 |
|
| 67 |
# Function to filter menu items based on preference
|
| 68 |
def filter_menu(preference):
|