Spaces:
Build error
Build error
Update static/frontend.js
Browse files18 unmodified lines1920212223247 unmodified lines323334353637385 unmodified lines4445464748495018 unmodified lines'Access-Control-Allow-Methods': 'POST, GET',}});return predictions.json()} catch (error) {console.log(error)7 unmodified lineslet user_query = document.getElementById("exampleFormControlInput1").value// let url_query = "http://10.27.32.183:8111/predict"if (user_query != ''){document.getElementById("spinner").style.display = 'block';5 unmodified linesdocument.getElementById("grey-container").className = 'album py-5 bg-light';let response = predictions['predictions']//loop through number of resultshtml = ''18 unmodified lines192021222324257 unmodified lines333435363738395 unmodified lines4546474849505118 unmodified lines'Access-Control-Allow-Methods': 'POST, GET',}});console.log(predictions)return predictions.json()} catch (error) {console.log(error)7 unmodified lineslet user_query = document.getElementById("exampleFormControlInput1").value// let url_query = "http://10.27.32.183:8111/predict"console.log(use_query)if (user_query != ''){document.getElementById("spinner").style.display = 'block';5 unmodified linesdocument.getElementById("grey-container").className = 'album py-5 bg-light';let response = predictions['predictions']console.log(response)//loop through number of resultshtml = ''
static/frontend.js+3-2