Spaces:
Running

File size: 477 Bytes
731ce29
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
async function query(data) {
	const response = await fetch(
		"https://api-inference.huggingface.co/models/migtissera/Tess-M-Creative-v1.0",
		{
			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));
});