Commit ·
7c371a4
1
Parent(s): edd84ab
Update app.py
Browse files26 unmodified lines2728293030313233333426 unmodified lines gr.Interface(fn=predict, inputs=gr.inputs.Textbox(lines=2, placeholder="Your Text… "), title="Mask Language Modeling - Demo", title="Mask Language Modeling", outputs=gr.outputs.Label(num_top_classes=NUM_CLASSES), description="Masked language modeling is the task of masking some of the words in a sentence and predicting which words should replace those masks", examples=['A Good Man Is Hard to Find [MASK].', 'Some stories have a [MASK] kind of message called a moral.']).launch() examples=['A Good Man Is Hard to Find [MASK].', 'Some stories have a [MASK] kind of message called a moral.'], interpretation='default').launch()app.py+3-2