Download a.html from Prompts/sentiment: direct link, hf CLI and curl.
- Browser
- Download file 1.15 kB
-
https://huggingface.co/spaces/Prompts/sentiment/resolve/main/a.html
- Command line
-
hf download hf://spaces/Prompts/sentiment/a.html
-
curl -L -o a.html https://huggingface.co/spaces/Prompts/sentiment/resolve/main/a.html
1.15 kB
| <html> | |
| <head> | |
| <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> | |
| <script type="text/javascript"> | |
| google.charts.load('current', {'packages':['corechart']}); | |
| google.charts.setOnLoadCallback(drawChart); | |
| function drawChart() | |
| { | |
| var data = google.visualization.arrayToDataTable([ | |
| ['Label', 'Score'], | |
| ['Joy', 0.9762780666351318], | |
| ['Sadness', 0.006413798779249191], | |
| ['Neutral', 0.005555825307965279], | |
| ['Anger', 0.003799660596996546], | |
| ['Surprise', 0.0037724850699305534], | |
| ['Disgust', 0.0034403549507260323], | |
| ['Fear', 0.0007397727458737791] | |
| ]); | |
| var options = { | |
| title: 'Pie Chart', | |
| is3D: true, | |
| }; | |
| var chart = new google.visualization.PieChart(document.getElementById('piechart')); | |
| chart.draw(data, options); | |
| } | |
| </script> | |
| </head> | |
| <body> | |
| <div id="piechart" style="width: 900px; height: 500px;"></div> | |
| </body> | |
| </html> |