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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -107,7 +107,7 @@ with gr.Blocks() as demo:
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.`);
 
107
  method: 'POST',
108
  headers: { 'Content-Type': 'application/json' },
109
  body: JSON.stringify({ data: [name, price] })
110
+ console.log(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.`);