tobegit3hub / simple_tensorflow_serving

Generic and easy-to-use serving service for machine learning models
https://stfs.readthedocs.io
Apache License 2.0
757 stars 195 forks source link

i run it with server.py,but it cant import the package in same dir.how can i fix it? #65

Closed rithd closed 3 years ago

rithd commented 5 years ago

File "server.py", line 18, in from .tensorflow_inference_service import TensorFlowInferenceService ValueError: Attempted relative import in non-package

i find init.py , but it still cant import it.

tobegit3hub commented 3 years ago

This has been fixed for Python 2 and Python 3. Please upgrade with `pip install -U simple_tensorflow_serving>=0.8.2".

Now we recommend to use the command simple_tensorflow_serving or stfs which is much easier.