File size: 588 Bytes
0ed3eb7 bad687a 0ed3eb7 bad687a 0ed3eb7 bad687a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
import os
import sys
# Add the project root to Python's module path
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
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 necessary files
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()
|