dschandra commited on
Commit
c06dd10
·
verified ·
1 Parent(s): 8632ccc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -115,7 +115,7 @@ with gr.Blocks() as demo:
115
  add_button.click(fn=add_to_cart, inputs=item_name_input, outputs=menu_html)
116
  update_button.click(fn=update_quantity, inputs=[item_name_input, operation_input], outputs=menu_html)
117
 
118
- # Include menu_html in Blocks context
119
- menu_html.render()
120
 
121
  demo.launch()
 
115
  add_button.click(fn=add_to_cart, inputs=item_name_input, outputs=menu_html)
116
  update_button.click(fn=update_quantity, inputs=[item_name_input, operation_input], outputs=menu_html)
117
 
118
+ # Add components directly without .render()
119
+ menu_html
120
 
121
  demo.launch()