camphong24032002 commited on
Commit
5f7dbda
·
1 Parent(s): 0da9a4a
Files changed (1) hide show
  1. static/js/script.js +2 -0
static/js/script.js CHANGED
@@ -17,6 +17,7 @@
17
  };
18
 
19
  let get_response = async(msg) => {
 
20
  const response = await fetch("http://0.0.0.0:7860/chat", {
21
  method: 'POST',
22
  headers: {
@@ -26,6 +27,7 @@
26
 
27
 
28
  });
 
29
  let json = await response.json();
30
  let message = json.message;
31
  return message.toString();
 
17
  };
18
 
19
  let get_response = async(msg) => {
20
+ console.log("Fetching")
21
  const response = await fetch("http://0.0.0.0:7860/chat", {
22
  method: 'POST',
23
  headers: {
 
27
 
28
 
29
  });
30
+ console.log("Done")
31
  let json = await response.json();
32
  let message = json.message;
33
  return message.toString();