DSatishchandra commited on
Commit
b100541
·
verified ·
1 Parent(s): 96fe3dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,7 +15,7 @@ def filter_menu(preference):
15
  menu_data = load_menu()
16
 
17
  # Check for the required columns
18
- required_columns = ["Category", "Dish Name", "Price", "Image URL", "Description"]
19
  for col in required_columns:
20
  if col not in menu_data.columns:
21
  raise ValueError(f"Missing column in Excel file: {col}")
@@ -33,7 +33,7 @@ def filter_menu(preference):
33
  <div style="display: flex; align-items: center; border: 1px solid #ddd; border-radius: 8px; padding: 15px; margin-bottom: 10px; box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);">
34
  <div style="flex: 1; margin-right: 15px;">
35
  <h3 style="margin: 0; font-size: 18px;">{item['Dish Name']}</h3>
36
- <p style="margin: 5px 0; font-size: 16px; color: #888;">${item['Price']}</p>
37
  <p style="margin: 5px 0; font-size: 14px; color: #555;">{item['Description']}</p>
38
  </div>
39
  <div style="flex-shrink: 0; text-align: center;">
 
15
  menu_data = load_menu()
16
 
17
  # Check for the required columns
18
+ required_columns = ["Category", "Dish Name", "Price ($)", "Image URL", "Description"]
19
  for col in required_columns:
20
  if col not in menu_data.columns:
21
  raise ValueError(f"Missing column in Excel file: {col}")
 
33
  <div style="display: flex; align-items: center; border: 1px solid #ddd; border-radius: 8px; padding: 15px; margin-bottom: 10px; box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);">
34
  <div style="flex: 1; margin-right: 15px;">
35
  <h3 style="margin: 0; font-size: 18px;">{item['Dish Name']}</h3>
36
+ <p style="margin: 5px 0; font-size: 16px; color: #888;">${item['Price ($)']}</p>
37
  <p style="margin: 5px 0; font-size: 14px; color: #555;">{item['Description']}</p>
38
  </div>
39
  <div style="flex-shrink: 0; text-align: center;">