nickgambirasi
commited on
Commit
·
45848d1
1
Parent(s):
12a5839
bug fix
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def process_document(image):
|
|
41 |
sequence = sequence.replace(processor.tokenizer.eos_token, "").replace(processor.tokenizer.pad_token, "")
|
42 |
sequence = re.sub(r"<.*?>", "", sequence, count=1).strip() # remove first task start token
|
43 |
|
44 |
-
processor.token2json(sequence)
|
45 |
|
46 |
return {
|
47 |
'text_requirements': 'all_pass',
|
|
|
41 |
sequence = sequence.replace(processor.tokenizer.eos_token, "").replace(processor.tokenizer.pad_token, "")
|
42 |
sequence = re.sub(r"<.*?>", "", sequence, count=1).strip() # remove first task start token
|
43 |
|
44 |
+
# js = processor.token2json(sequence)
|
45 |
|
46 |
return {
|
47 |
'text_requirements': 'all_pass',
|