Created
December 26, 2021 17:28
-
-
Save agusrichard/1e5b81acf6e1f6a37752c814a72b48c2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import uvicorn | |
from fastapi import FastAPI | |
app = FastAPI() | |
@app.get('/') | |
def index(): | |
return 'Hello World!' | |
if __name__ == '__main__': | |
uvicorn.run("app.main:app", host="0.0.0.0", port=5000, log_level="info", reload=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment