Commit ·
7c371a4
1
Parent(s): edd84ab
Update app.py
Browse files26 unmodified lines2728293031323326 unmodified linesgr.Interface(fn=predict,inputs=gr.inputs.Textbox(lines=2, placeholder="Your Text… "),title="Mask Language Modeling - Demo",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()26 unmodified lines272829303132333426 unmodified linesgr.Interface(fn=predict,inputs=gr.inputs.Textbox(lines=2, placeholder="Your Text… "),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.'],interpretation='default').launch()
app.py+3-2