fffiloni commited on
Commit
d4a21f3
1 Parent(s): 0b475b7

Update index.mjs

Browse files
Files changed (1) hide show
  1. index.mjs +2 -2
index.mjs CHANGED
@@ -29,8 +29,8 @@ async function asyncAPICall(data, socket) {
29
  const grapi = await Client.connect("fffiloni/mndrm-call");
30
  try{
31
  const api_result = await grapi.predict("/infer", {
32
- data[0], // blob in 'image' Image component
33
- data[1], // string in 'Question' Textbox component
34
  });
35
  console.log(api_result)
36
  socket.emit("api_response", (api_result.data))
 
29
  const grapi = await Client.connect("fffiloni/mndrm-call");
30
  try{
31
  const api_result = await grapi.predict("/infer", {
32
+ image_string: data[0], // blob in 'image' Image component
33
+ question: data[1], // string in 'Question' Textbox component
34
  });
35
  console.log(api_result)
36
  socket.emit("api_response", (api_result.data))