Spaces:
Runtime error
Runtime error
Update files/functions.py
Browse files- files/functions.py +2 -2
files/functions.py
CHANGED
@@ -69,8 +69,8 @@ label2id = model.config.label2id
|
|
69 |
num_labels = len(id2label)
|
70 |
|
71 |
# (tokenization) The maximum length of a feature (sequence)
|
72 |
-
if str(
|
73 |
-
max_length =
|
74 |
elif str(512) in model_id:
|
75 |
max_length = 512
|
76 |
else:
|
|
|
69 |
num_labels = len(id2label)
|
70 |
|
71 |
# (tokenization) The maximum length of a feature (sequence)
|
72 |
+
if str(256) in model_id:
|
73 |
+
max_length = 256
|
74 |
elif str(512) in model_id:
|
75 |
max_length = 512
|
76 |
else:
|