MCPcopy Create free account
hub / github.com/tensorflow/tfjs-examples / loadMetadata

Function loadMetadata

intent-classifier/app/index.js:43–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41
42let metadata;
43async function loadMetadata() {
44 if (metadata == null) {
45 const resp = await fetch(METADATA_URL);
46 metadata = resp.json();
47 }
48 return metadata;
49}
50
51async function classify(sentences) {
52 const [use, intent, metadata] = await Promise.all(

Callers 2

classifyFunction · 0.70
getClassificationMessageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected