version to 2.0.0 for not reinstall in test and skip ofa case for lack file

This commit is contained in:
mulin.lyh
2024-05-23 18:00:23 +08:00
parent b2c00fcdb0
commit bf7436e4be
2 changed files with 4 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
# Make sure to modify __release_datetime__ to release time when making official release.
__version__ = '1.9.4'
__version__ = '2.0.0'
# default release datetime for branches under active development is set
# to be a time far-far-away-into-the-future
__release_datetime__ = '2099-09-06 00:00:00'

View File

@@ -316,7 +316,9 @@ class OfaTasksTest(unittest.TestCase):
result[OutputKeys.OUTPUT_IMG].save('result.png')
print(f'Output written to {osp.abspath("result.png")}')
@unittest.skipUnless(test_level() >= 0, 'skip test in current test level')
@unittest.skipUnless(
test_level() >= 1,
'skip test in current test level, model has no text2phone_dict.txt')
def test_run_with_asr_with_name(self):
model = 'damo/ofa_mmspeech_pretrain_base_zh'
ofa_pipe = pipeline(Tasks.auto_speech_recognition, model=model)