model <- transformer(architecture = "XLM-RoBERTa", model_name = "xlm-roberta-base")
expect_true(inherits(model, "Transformer"))
expect_true(inherits(predict(model, "testing out", type = "embed-sentence", trace = FALSE), "matrix"))
## Clean up models folder
unlink_golgotha()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.