nagasurendra's picture
Update app.py
a6cbbf3 verified
raw
history blame
689 Bytes
import os
import sys
# Dynamically add the root project directory to Python's module search path
project_root = os.path.dirname(os.path.abspath(__file__))
if project_root not in sys.path:
sys.path.insert(0, project_root)
from routes.auth import login, sign_up
from routes.menu import load_menu
from routes.orders import add_to_order, view_order, place_order
from utils.file_initializer import initialize_files
# Initialize necessary files
initialize_files()
def restaurant_interface():
from gradio import Blocks
with Blocks() as app:
app.load_page("templates/index.html")
return app
if __name__ == "__main__":
app = restaurant_interface()
app.launch()