File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 49
49
_ML_ATTRIBUTE = '_ml'
50
50
_MAX_PAGE_SIZE = 100
51
51
_MODEL_ID_PATTERN = re .compile (r'^[A-Za-z0-9_-]{1,60}$' )
52
- _DISPLAY_NAME_PATTERN = re .compile (r'^[A-Za-z0-9_-]{1,60 }$' )
53
- _TAG_PATTERN = re .compile (r'^[A-Za-z0-9_-]{1,60 }$' )
52
+ _DISPLAY_NAME_PATTERN = re .compile (r'^[A-Za-z0-9_-]{1,32 }$' )
53
+ _TAG_PATTERN = re .compile (r'^[A-Za-z0-9_-]{1,32 }$' )
54
54
_GCS_TFLITE_URI_PATTERN = re .compile (
55
55
r'^gs://(?P<bucket_name>[a-z0-9_.-]{3,63})/(?P<blob_name>.+)$' )
56
56
_RESOURCE_NAME_PATTERN = re .compile (
Original file line number Diff line number Diff line change @@ -42,22 +42,22 @@ def _random_identifier(prefix):
42
42
43
43
44
44
NAME_ONLY_ARGS = {
45
- 'display_name' : _random_identifier ('TestModel123_ ' )
45
+ 'display_name' : _random_identifier ('TestModel_ ' )
46
46
}
47
47
NAME_ONLY_ARGS_UPDATED = {
48
- 'display_name' : _random_identifier ('TestModel123_updated_ ' )
48
+ 'display_name' : _random_identifier ('TestModel_updated_ ' )
49
49
}
50
50
NAME_AND_TAGS_ARGS = {
51
- 'display_name' : _random_identifier ('TestModel123_tags_ ' ),
51
+ 'display_name' : _random_identifier ('TestModel_tags_ ' ),
52
52
'tags' : ['test_tag123' ]
53
53
}
54
54
FULL_MODEL_ARGS = {
55
- 'display_name' : _random_identifier ('TestModel123_full_ ' ),
55
+ 'display_name' : _random_identifier ('TestModel_full_ ' ),
56
56
'tags' : ['test_tag567' ],
57
57
'file_name' : 'model1.tflite'
58
58
}
59
59
INVALID_FULL_MODEL_ARGS = {
60
- 'display_name' : _random_identifier ('TestModel123_invalid_full_ ' ),
60
+ 'display_name' : _random_identifier ('TestModel_invalid_full_ ' ),
61
61
'tags' : ['test_tag890' ],
62
62
'file_name' : 'invalid_model.tflite'
63
63
}
You can’t perform that action at this time.
0 commit comments