imamnurby commited on
Commit
c8a916e
·
1 Parent(s): c1bf2c0

Update static/frontend.js

Browse files
Files changed (1) hide show
  1. static/frontend.js +3 -2
static/frontend.js CHANGED
@@ -19,6 +19,7 @@
19
  'Access-Control-Allow-Methods': 'POST, GET',
20
  }
21
  });
 
22
  return predictions.json()
23
  } catch (error) {
24
  console.log(error)
@@ -32,7 +33,7 @@
32
 
33
  let user_query = document.getElementById("exampleFormControlInput1").value
34
  // let url_query = "http://10.27.32.183:8111/predict"
35
-
36
 
37
  if (user_query != ''){
38
  document.getElementById("spinner").style.display = 'block';
@@ -44,7 +45,7 @@
44
  document.getElementById("grey-container").className = 'album py-5 bg-light';
45
 
46
  let response = predictions['predictions']
47
-
48
 
49
  //loop through number of results
50
  html = ''
 
19
  'Access-Control-Allow-Methods': 'POST, GET',
20
  }
21
  });
22
+ console.log(predictions)
23
  return predictions.json()
24
  } catch (error) {
25
  console.log(error)
 
33
 
34
  let user_query = document.getElementById("exampleFormControlInput1").value
35
  // let url_query = "http://10.27.32.183:8111/predict"
36
+ console.log(use_query)
37
 
38
  if (user_query != ''){
39
  document.getElementById("spinner").style.display = 'block';
 
45
  document.getElementById("grey-container").className = 'album py-5 bg-light';
46
 
47
  let response = predictions['predictions']
48
+ console.log(response)
49
 
50
  //loop through number of results
51
  html = ''