Skip to content

Commit

Permalink
Update is this disturbing.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Coding4Hours authored Mar 31, 2024
1 parent b3127cf commit ab6c56a
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions is this disturbing.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
<script>
function check(str) {
const options = {
method: 'POST',
headers: {
Authorization: 'Bearer shuttle-df5e87b9dbff06f6f7cf',
'Content-Type': 'application/json'
},
body: {"input":str,"model":"text-moderation-latest"}
};
fetch('https://api.shuttleai.app/v1/moderations', options)
.then(response => response.json())
.then(response => console.log(response.results[0].flagged))
.catch(err => console.error(err));
}

</script>
<input id="hi"/>

0 comments on commit ab6c56a

Please sign in to comment.