CesarLeblanc commited on
Commit
5e56f69
·
1 Parent(s): 54a8fdb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -53,7 +53,7 @@ def classification(text, typology, confidence, task):
53
  def masking(text, task):
54
  model = return_model(task)
55
  text += ', [MASK] [MASK]'
56
- pred = mask_filler(text, top_k=1)
57
  text = pred[0]["sequence"]
58
  image = gr.Image(value="https://www.salonlfc.com/wp-content/uploads/2018/01/image-not-found-scaled-1150x647.png")
59
  return text, image
 
53
  def masking(text, task):
54
  model = return_model(task)
55
  text += ', [MASK] [MASK]'
56
+ pred = model(text, top_k=1)
57
  text = pred[0]["sequence"]
58
  image = gr.Image(value="https://www.salonlfc.com/wp-content/uploads/2018/01/image-not-found-scaled-1150x647.png")
59
  return text, image