UnarineLeo commited on
Commit
8d1b776
1 Parent(s): 8e2eecc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ def fill_mask(sentences):
10
  results = {}
11
  warnings = []
12
  warnings.append(f"= {sentences.items()}")
13
- for (language, sentence) in sentences.items():
14
  warnings.append(f"=> {sentence}")
15
  if "<mask>" in sentence:
16
  masked_sentence = sentence.replace('<mask>', unmasker.tokenizer.mask_token)
 
10
  results = {}
11
  warnings = []
12
  warnings.append(f"= {sentences.items()}")
13
+ for key, (language, sentence) in sentences.items():
14
  warnings.append(f"=> {sentence}")
15
  if "<mask>" in sentence:
16
  masked_sentence = sentence.replace('<mask>', unmasker.tokenizer.mask_token)