CoolFace
Apppublic

Prompts/sentiment

sourceHugging Faceapache-2.0updated 4y agoView on Hugging Face
0likes
a.html32 linesDownload Raw Back to root
1<html>2   <head>3      <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>4      <script type="text/javascript">5          google.charts.load('current', {'packages':['corechart']});6          google.charts.setOnLoadCallback(drawChart);7          function drawChart()8          {9            var data = google.visualization.arrayToDataTable([10               ['Label', 'Score'],11               ['Joy', 0.9762780666351318],12               ['Sadness', 0.006413798779249191],13               ['Neutral', 0.005555825307965279],14               ['Anger', 0.003799660596996546],15               ['Surprise', 0.0037724850699305534],16               ['Disgust', 0.0034403549507260323],17               ['Fear', 0.0007397727458737791]18            ]);19 20            var options = {21              title: 'Pie Chart',22              is3D: true,23            };24            var chart = new google.visualization.PieChart(document.getElementById('piechart'));25            chart.draw(data, options);26          }27      </script>28   </head>29   <body>30      <div id="piechart" style="width: 900px; height: 500px;"></div>31   </body>32</html>