DSatishchandra commited on
Commit
2821616
·
verified ·
1 Parent(s): bfa1ca7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -6
app.py CHANGED
@@ -78,12 +78,19 @@ def place_order_interface():
78
 
79
  # Gradio Interfaces
80
  with gr.Blocks() as app:
81
- with gr.Tab("Login"):
82
- email = gr.Textbox(label="Email", placeholder="Enter your email")
83
- password = gr.Textbox(label="Password", type="password", placeholder="Enter your password")
84
- login_button = gr.Button("Login")
85
- login_output = gr.Textbox(label="Login Status")
86
- login_button.click(login, inputs=[email, password], outputs=login_output)
 
 
 
 
 
 
 
87
 
88
  with gr.Tab("Signup"):
89
  name = gr.Textbox(label="Name", placeholder="Enter your name")
 
78
 
79
  # Gradio Interfaces
80
  with gr.Blocks() as app:
81
+ preference_radio = gr.Radio(["All", "Veg", "Non-Veg"], label="Filter Menu", value="All")
82
+ menu_data_table = gr.Dataframe(headers=["Name", "Price", "Description"], datatype=["str", "number", "str"])
83
+
84
+ # Add a button to trigger menu display
85
+ menu_button = gr.Button("Show Menu")
86
+
87
+ # Connect display logic
88
+ menu_button.click(
89
+ display_menu, # Function to call
90
+ inputs=preference_radio, # Input component
91
+ outputs=menu_data_table # Output component
92
+ )
93
+
94
 
95
  with gr.Tab("Signup"):
96
  name = gr.Textbox(label="Name", placeholder="Enter your name")