Spaces:
Runtime error
Runtime error
Upload main.py
Browse files
main.py
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
|
|
| 1 |
from fastapi import FastAPI
|
| 2 |
from fastapi.middleware.cors import CORSMiddleware
|
| 3 |
-
|
| 4 |
-
|
| 5 |
from api.routes import router as api_router
|
| 6 |
from config.settings import init_settings
|
| 7 |
|
| 8 |
-
|
| 9 |
app = FastAPI(
|
| 10 |
-
title="
|
| 11 |
-
description="API for
|
| 12 |
version="1.0.0"
|
| 13 |
)
|
| 14 |
|
|
@@ -20,6 +18,9 @@ app.add_middleware(
|
|
| 20 |
allow_headers=["*"],
|
| 21 |
)
|
| 22 |
|
|
|
|
|
|
|
|
|
|
| 23 |
init_settings()
|
| 24 |
|
| 25 |
app.include_router(api_router)
|
|
|
|
| 1 |
+
import uvicorn
|
| 2 |
from fastapi import FastAPI
|
| 3 |
from fastapi.middleware.cors import CORSMiddleware
|
|
|
|
|
|
|
| 4 |
from api.routes import router as api_router
|
| 5 |
from config.settings import init_settings
|
| 6 |
|
|
|
|
| 7 |
app = FastAPI(
|
| 8 |
+
title="Resume & Audio Experience Analyzer",
|
| 9 |
+
description="API for analyzing resumes and audio recordings using semantic search and speech analysis",
|
| 10 |
version="1.0.0"
|
| 11 |
)
|
| 12 |
|
|
|
|
| 18 |
allow_headers=["*"],
|
| 19 |
)
|
| 20 |
|
| 21 |
+
if __name__ == "__main__":
|
| 22 |
+
uvicorn.run(app, host="0.0.0.0", port=8000)
|
| 23 |
+
|
| 24 |
init_settings()
|
| 25 |
|
| 26 |
app.include_router(api_router)
|