Skip to content

Commit

Permalink
[Bug Fix] fix import download module error in python3.6 (PaddlePaddle…
Browse files Browse the repository at this point in the history
…#591)

fix import download module error in python3.6
  • Loading branch information
rainyfly authored Nov 15, 2022
1 parent a24004a commit 0e0838d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/fastdeploy/utils/example_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0e0838d

Please sign in to comment.