Rammohan0504 commited on
Commit
7ae290d
·
verified ·
1 Parent(s): c1fbff5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -107,6 +107,7 @@ with gr.Blocks() as demo:
107
  method: 'POST',
108
  headers: { 'Content-Type': 'application/json' },
109
  body: JSON.stringify({ data: [name, price] })
 
110
  }).then(response => response.json()).then(data => {
111
  document.getElementById('cart-content').innerHTML = data.data;
112
  alert(`${name} has been added to your cart.`);
 
107
  method: 'POST',
108
  headers: { 'Content-Type': 'application/json' },
109
  body: JSON.stringify({ data: [name, price] })
110
+ console.log(data.name)
111
  }).then(response => response.json()).then(data => {
112
  document.getElementById('cart-content').innerHTML = data.data;
113
  alert(`${name} has been added to your cart.`);