Spaces:
Sleeping
Sleeping
Merge branch 'main' of https://huggingface.co/spaces/0edon/KairosNews
Browse files
app.py
CHANGED
|
@@ -60,6 +60,10 @@ app = FastAPI(
|
|
| 60 |
lifespan=lifespan
|
| 61 |
)
|
| 62 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
app.add_middleware(
|
| 64 |
CORSMiddleware,
|
| 65 |
allow_origins=["*"],
|
|
|
|
| 60 |
lifespan=lifespan
|
| 61 |
)
|
| 62 |
|
| 63 |
+
@app.get("/")
|
| 64 |
+
async def root():
|
| 65 |
+
return {"message": "Kairos News API is running"}
|
| 66 |
+
|
| 67 |
app.add_middleware(
|
| 68 |
CORSMiddleware,
|
| 69 |
allow_origins=["*"],
|