Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

main.py 375 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  1. from fastapi import FastAPI
  2. from routes import predict
  3. app = FastAPI(
  4. title="App template",
  5. version="0.0.1",
  6. docs_url="/docs",
  7. redoc_url=None,
  8. )
  9. @app.get('/health-check')
  10. def healthcheck():
  11. return {'healthy': 'true'}
  12. app.include_router(
  13. predict.router,
  14. prefix='',
  15. tags=["prediction"],
  16. responses={404: {"description": "Not found"}},
  17. )
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...