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 4949_ML_ATTRIBUTE = '_ml'
5050_MAX_PAGE_SIZE = 100
5151_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 }$' )
5454_GCS_TFLITE_URI_PATTERN = re .compile (
5555 r'^gs://(?P<bucket_name>[a-z0-9_.-]{3,63})/(?P<blob_name>.+)$' )
5656_RESOURCE_NAME_PATTERN = re .compile (
Original file line number Diff line number Diff line change @@ -42,22 +42,22 @@ def _random_identifier(prefix):
4242
4343
4444NAME_ONLY_ARGS = {
45- 'display_name' : _random_identifier ('TestModel123_ ' )
45+ 'display_name' : _random_identifier ('TestModel_ ' )
4646}
4747NAME_ONLY_ARGS_UPDATED = {
48- 'display_name' : _random_identifier ('TestModel123_updated_ ' )
48+ 'display_name' : _random_identifier ('TestModel_updated_ ' )
4949}
5050NAME_AND_TAGS_ARGS = {
51- 'display_name' : _random_identifier ('TestModel123_tags_ ' ),
51+ 'display_name' : _random_identifier ('TestModel_tags_ ' ),
5252 'tags' : ['test_tag123' ]
5353}
5454FULL_MODEL_ARGS = {
55- 'display_name' : _random_identifier ('TestModel123_full_ ' ),
55+ 'display_name' : _random_identifier ('TestModel_full_ ' ),
5656 'tags' : ['test_tag567' ],
5757 'file_name' : 'model1.tflite'
5858}
5959INVALID_FULL_MODEL_ARGS = {
60- 'display_name' : _random_identifier ('TestModel123_invalid_full_ ' ),
60+ 'display_name' : _random_identifier ('TestModel_invalid_full_ ' ),
6161 'tags' : ['test_tag890' ],
6262 'file_name' : 'invalid_model.tflite'
6363}
You can’t perform that action at this time.
0 commit comments