Rammohan0504 commited on
Commit
3a4022f
·
verified ·
1 Parent(s): 3a6f9b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -79,8 +79,8 @@ popup_js = """
79
  try {
80
  const response = await fetch("/run/add_to_cart", {
81
  method: "POST",
82
- body: JSON.stringify({ name }),
83
- headers: { "Content-Type": "application/json" },
84
  });
85
 
86
  const result = await response.json();
@@ -154,7 +154,4 @@ with gr.Blocks() as demo:
154
  )
155
 
156
  # Register backend functions
157
- demo.load(add_to_cart, inputs="text", outputs="text")
158
-
159
  demo.launch()
160
-
 
79
  try {
80
  const response = await fetch("/run/add_to_cart", {
81
  method: "POST",
82
+ body: JSON.stringify({ item_name: name }),
83
+ headers: { "Content-Type": "application/json" }
84
  });
85
 
86
  const result = await response.json();
 
154
  )
155
 
156
  # Register backend functions
 
 
157
  demo.launch()