Subbu1304 commited on
Commit
5cff1dc
·
verified ·
1 Parent(s): a5ee86e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -18,12 +18,11 @@ app = Flask(__name__)
18
 
19
 
20
 
21
- # Define the route for the menu page ('/menu')
22
  @app.route('/menu')
23
  def menu_page():
24
- # If you need to call functions from menu.py, do it here
25
- items = menu.get_menu_items() # Example: Use a function from menu.py
26
- return render_template('menu.html', items=items) # Pass the data to the template
27
 
28
  # Use whisper-small for faster processing and better speed
29
  device = "cuda" if torch.cuda.is_available() else "cpu"
 
18
 
19
 
20
 
 
21
  @app.route('/menu')
22
  def menu_page():
23
+ # Use the function from menu.py to get menu items
24
+ items = menu.get_menu_items() # Fetch data from menu.py
25
+ return render_template('menu.html', items=items) # Render a template with the items
26
 
27
  # Use whisper-small for faster processing and better speed
28
  device = "cuda" if torch.cuda.is_available() else "cpu"