Spaces:
Build error

jskinner215 commited on
Commit
6674859
·
1 Parent(s): 0704eb2

updated to fix indexing error

Browse files

Error:
Token indices sequence length is longer than the specified maximum sequence length for this model (5187 > 512).

This suggests that your input sequence length is exceeding the maximum allowable sequence length for the model. TAPAS, like many other transformer models, has a maximum input sequence length. In this case, it's 512 tokens.
IndexError: iloc cannot enlarge its target object

This is the error related to pandas, where it's not allowed to assign a value to an index that doesn't exist in the DataFrame.

Attempted Fix:
I've added checks to ensure that token count doesn't exceed the model's limit.
I've added debugging print statements to help you understand what's going on.

1 file changed +14 -4
app.py+14-4