Comments (3)
I got it, thanks for the answer.
from mlchain-python.
Hi @hieuthehungry. Thanks for the interest!
First of all, sorry for the lack of up to date documentation, since we are still iterating the library, we haven't really touch the documentation part.
For now, mlchain does not suport custom API route. There will be only the default route like host:port/call/method
For example, if your served model is something like this:
class Model:
def predict(self, image):
....
return res
def predict_batch(self, images):
....
return res
Running on 0.0.0.0
at port 9999
. Then the server would only have 2 default route:
0.0.0.0:9999/call/predict
0.0.0.0:9999/call/predict_batch
I hope this can help ;)
from mlchain-python.
Are the answer satisfied you @hieuthehungry. If it's not, feel free to let us know ;)
from mlchain-python.
Related Issues (20)
- Environment variable CUDA_VISIBLE_DEVICES don't have effect when running with MLChain
- Merge conflict not resolved yet
- Compress css files
- Remove + compress js files
- CI/CD for documentations on release
- Auto parse argument of mlchain run to mlconfig HOT 1
- PyYAML Breaking Dependency
- ModuleNotFoundError: No module named 'code.server'; 'code' is not a package HOT 1
- TensorFlow 1 Session hanging when run with pure python but not with CLI
- objc[28043]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. HOT 1
- Need to expose sock from Gunicorn wrapper
- Update mlchain init mlconfig.yml
- Better mlchain exported variables converter
- Sentry integration
- Support on ARM
- Support Starlette
- TypeError: 'coroutine' object is not iterable HOT 1
- Support full CI matrix build for x86 HOT 1
- ImportError: cannot import name 'ResponseClosed' from 'httpx' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mlchain-python.