Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
|
|
|
| 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)
|