Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs/dist/tf.min.js"> </script> <!-- Load the MobileNet model. -->
- <script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/toxicity"></script>
- <title>Speech toxicity classification using tensorflow.js</title>
- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css"
- integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
- <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
- <script src="index.js"></script>
- </head>
- <body>
- <main>
- <div class="container mt-5">
- <div class="row">
- <div class="col-6">
- <button id="talk">Talk</button>
- <h3 id="allclear">Query : <p id="content"></p></h3>
- </div>
- <div class="col-6">
- <button id="predict-button" class="btn btn-dark float-right" onclick="getPred()">Predict</button>
- </div>
- </div>
- <hr>
- <div class="row">
- <div class="col-12">
- <h2 class="ml-3">Predictions</h2>
- <h2 id='sentence'></h2>
- <ol id="prediction-list"></ol>
- </div>
- </div>
- </div>
- </main>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement