Spaces:
Running
Running
<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> |