* Initializes the Sentiment demo.
(urls)
| 37 | * Initializes the Sentiment demo. |
| 38 | */ |
| 39 | async init(urls) { |
| 40 | this.urls = urls; |
| 41 | this.model = await loader.loadHostedPretrainedModel(urls.model); |
| 42 | await this.loadMetadata(); |
| 43 | return this; |
| 44 | } |
| 45 | |
| 46 | async loadMetadata() { |
| 47 | const sentimentMetadata = |
no test coverage detected