Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
| 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.`);
|