from gradio import Blocks | |
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 all files and configurations | |
initialize_files() | |
def restaurant_interface(): | |
with Blocks() as app: | |
app.load_page("templates/index.html") | |
return app | |
if __name__ == "__main__": | |
app = restaurant_interface() | |
app.launch() | |