From 0e0838dec504eaa014a949cade8fd505e9b9e8f1 Mon Sep 17 00:00:00 2001 From: chenjian Date: Tue, 15 Nov 2022 13:19:32 +0800 Subject: [PATCH] [Bug Fix] fix import download module error in python3.6 (#591) fix import download module error in python3.6 --- python/fastdeploy/utils/example_resource.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/fastdeploy/utils/example_resource.py b/python/fastdeploy/utils/example_resource.py index 4bfc4f2d8..682a07f2b 100644 --- a/python/fastdeploy/utils/example_resource.py +++ b/python/fastdeploy/utils/example_resource.py @@ -11,14 +11,14 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -import fastdeploy.download as download +import fastdeploy as fd import fastdeploy.utils.hub_env as hubenv def get_detection_test_image(path=None): if path is None: path = hubenv.RESOURCE_HOME - fullpath = download.download( + fullpath = fd.download( url='https://bj.bcebos.com/paddlehub/fastdeploy/example/detection_test_image.jpg', path=path) return fullpath