From 4124d8c19301e6a77e5fb23a25e2a4511926d4b1 Mon Sep 17 00:00:00 2001 From: ShenYuhan Date: Tue, 22 Dec 2020 10:20:49 +0800 Subject: [PATCH] Filter data of Model type in the hub search command --- paddlehub/commands/search.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paddlehub/commands/search.py b/paddlehub/commands/search.py index 725b5c7e..58c024cd 100644 --- a/paddlehub/commands/search.py +++ b/paddlehub/commands/search.py @@ -36,7 +36,8 @@ class SearchCommand: results = module_server.search_module(name=argv) for result in results: - table.append(result['name'], result['version'], result['summary']) + if 'Module' == result['type']: + table.append(result['name'], result['version'], result['summary']) print(table) return True -- GitLab