Update app.py
Browse files
app.py
CHANGED
|
@@ -56,7 +56,7 @@ def fill_masked(text: str, model_name: str, top_k: int):
|
|
| 56 |
# Format results for display
|
| 57 |
res_dict = {}
|
| 58 |
if isinstance(results[0], list):
|
| 59 |
-
for mask_num,
|
| 60 |
formatted = []
|
| 61 |
for cand in mask_results:
|
| 62 |
formatted.append({
|
|
|
|
| 56 |
# Format results for display
|
| 57 |
res_dict = {}
|
| 58 |
if isinstance(results[0], list):
|
| 59 |
+
for mask_num, mask_results in enumerate(results):
|
| 60 |
formatted = []
|
| 61 |
for cand in mask_results:
|
| 62 |
formatted.append({
|