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