File size: 669 Bytes
eea7488
 
 
 
 
 
 
c8d81ce
eea7488
 
 
1
2
3
4
5
6
7
8
9
10
11
import gradio as gr

description = "Gradio demo for Tagalog Roberta, A Robustly Optimized BERT Pretraining Approach. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/1907.11692'>RoBERTa: A Robustly Optimized BERT Pretraining Approach</a> | <a href='https://github.com/pytorch/fairseq/'>Github Repo</a></p>"



gr.Interface.load("huggingface/roberta-tagalog-large", inputs=gr.inputs.Textbox(lines=5,label="Input Text"), description=description, article=article,examples=[
  ["Magandang <mask>"],
  ["Ang langit ay kulay <mask>"]
]).launch()