test / index.html
JayIsTheLord's picture
Update index.html
d318c59
raw
history blame contribute delete
No virus
835 Bytes
<html>
<head>
<title>gpt</title>
</head>
<body>
<script>
async function query(data) {
const response = await fetch(
"https://api-inference.huggingface.co/models/bigcode/octogeex",
{
headers: { Authorization: "Bearer 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" },
method: "POST",
body: JSON.stringify(data),
}
);
const result = await response.json();
return result;
}
query({"inputs": "Can you please let us know more details about your "}).then((response) => {
console.log(JSON.stringify(response));
});
</script>
</body>
</html>