Spaces:
Sleeping
Sleeping
Commit
·
94dc66c
1
Parent(s):
f8a99d9
Debug output
Browse files
app.py
CHANGED
@@ -41,8 +41,10 @@ def predict(type, normalized_asm):
|
|
41 |
no_mask_idx=torch.LongTensor([tokenizer_output['no_mask_idx']]).cuda(),
|
42 |
pad_token_id=tokenizer.pad_token_id, eos_token_id=tokenizer.eos_token_id
|
43 |
)
|
|
|
44 |
|
45 |
output = tokenizer.decode(output[input_ids.size(1): ], skip_special_tokens=True, clean_up_tokenization_spaces=True)
|
|
|
46 |
|
47 |
return output
|
48 |
|
|
|
41 |
no_mask_idx=torch.LongTensor([tokenizer_output['no_mask_idx']]).cuda(),
|
42 |
pad_token_id=tokenizer.pad_token_id, eos_token_id=tokenizer.eos_token_id
|
43 |
)
|
44 |
+
print("Output 1:", output)
|
45 |
|
46 |
output = tokenizer.decode(output[input_ids.size(1): ], skip_special_tokens=True, clean_up_tokenization_spaces=True)
|
47 |
+
print("Output 2:", output)
|
48 |
|
49 |
return output
|
50 |
|