-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MRG] the local web server to display the MLE suggestions #177
Conversation
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you write down the how users use this feature?
Yes, sure! I will update the document when this feature is well-tested |
free to merge so we can test it |
awesome! we can merge at first 👨🏻💻 |
User description
Closes #169
The backend server can be started under the mle project by using
mle serve
.The web is placed outside the mle-agent SDK, and should be launched individually.
Before submitting this PR, please make sure you have:
the credit file.
PR Type
enhancement, dependencies
Description
serve
to start the FastAPI server with configurable host and port.requirements.txt
to includefastapi
anduvicorn
dependencies.Changes walkthrough 📝
cli.py
Add CLI command to start FastAPI server
mle/cli.py
uvicorn
andapp
frommle.server
.serve
to start the FastAPI server.__init__.py
Initialize server module with app import
mle/server/init.py
app
.app.py
Implement FastAPI application with CORS middleware
mle/server/app.py
requirements.txt
Add FastAPI and Uvicorn to dependencies
requirements.txt
fastapi
anduvicorn
as dependencies.