Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -78,12 +78,19 @@ def place_order_interface(): | |
| 78 |  | 
| 79 | 
             
            # Gradio Interfaces
         | 
| 80 | 
             
            with gr.Blocks() as app:
         | 
| 81 | 
            -
                 | 
| 82 | 
            -
             | 
| 83 | 
            -
             | 
| 84 | 
            -
             | 
| 85 | 
            -
             | 
| 86 | 
            -
             | 
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
| 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")
         | 
