muneebashraf's picture
Update app.py
dc23258
raw
history blame
207 Bytes
unmasker = pipeline('fill-mask', model='bert-large-uncased')
user_input = input("Enter a sentence with a masked word: ")
results = unmasker(user_input)
for result in results:
print(result['sequence'])