Guest User

index.html

a guest
Apr 23rd, 2021
86
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2. <head>
  3. <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs/dist/tf.min.js"> </script>    <!-- Load the MobileNet model. -->
  4. <script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/toxicity"></script>
  5. <title>Speech toxicity classification using tensorflow.js</title>
  6. <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css"
  7.        integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
  8. <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
  9.  
  10. <script src="index.js"></script>
  11. </head>
  12. <body>
  13.     <main>
  14.         <div class="container mt-5">
  15.             <div class="row">
  16.                 <div class="col-6">
  17.                     <button id="talk">Talk</button>
  18.                     <h3 id="allclear">Query : <p id="content"></p></h3>
  19.                 </div>
  20.                 <div class="col-6">
  21.                     <button id="predict-button" class="btn btn-dark float-right" onclick="getPred()">Predict</button>
  22.                 </div>
  23.             </div>
  24.             <hr>
  25.             <div class="row">
  26.                 <div class="col-12">
  27.                     <h2 class="ml-3">Predictions</h2>
  28.                     <h2 id='sentence'></h2>
  29.                     <ol id="prediction-list"></ol>
  30.                 </div>
  31.             </div>
  32.         </div>
  33.     </main>    
  34. </body>
  35. </html>
RAW Paste Data