shiva9876 commited on
Commit
6481efc
·
verified ·
1 Parent(s): 8e1982e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,7 +17,7 @@ app.add_middleware(
17
  allow_headers=["*"],
18
  )
19
 
20
- app.include_router(router)
21
 
22
  # Serve the UI folder at the root
23
  app.mount("/", StaticFiles(directory="ui", html=True), name="ui")
@@ -33,4 +33,4 @@ async def log_requests(request: Request, call_next):
33
 
34
  if __name__ == "__main__":
35
  import uvicorn
36
- uvicorn.run(app, host="0.0.0.0", port=7860)
 
17
  allow_headers=["*"],
18
  )
19
 
20
+ app.include_router(router, prefix="/api")
21
 
22
  # Serve the UI folder at the root
23
  app.mount("/", StaticFiles(directory="ui", html=True), name="ui")
 
33
 
34
  if __name__ == "__main__":
35
  import uvicorn
36
+ uvicorn.run(app, host="0.0.0.0", port=7861)