Team Ai
Apppublic

jshong0907/docker-tutorial

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
app.py17 linesDownload Raw Back to root
1from fastapi import FastAPI2 3app = FastAPI()4 5@app.get("/")6def greet_json():7    return {"Hello": "World!"}8 9if __name__ == '__main__':10    import uvicorn11    import time12    print('sleeping')13    time.sleep(60)14    print('run server')15    uvicorn.run(app, host="0.0.0.0", port=8000)16 17