Neo2902 commited on
Commit ·
2e6e476
1
Parent(s): 6fda259
Projet complet avec chunking, extract_playlist et youtube_search
Browse files
app.py
CHANGED
|
@@ -11,14 +11,17 @@ import chunking
|
|
| 11 |
import extract_playlist_playwright
|
| 12 |
import youtube_search
|
| 13 |
|
| 14 |
-
|
| 15 |
|
| 16 |
app = FastAPI()
|
| 17 |
|
| 18 |
@app.get("/")
|
| 19 |
-
async def root():
|
|
|
|
|
|
|
| 20 |
return {"message": "API active et prête à recevoir des demandes sur /extract"}
|
| 21 |
|
|
|
|
| 22 |
from fastapi import FastAPI, Request
|
| 23 |
from fastapi.responses import JSONResponse
|
| 24 |
import asyncio
|
|
|
|
| 11 |
import extract_playlist_playwright
|
| 12 |
import youtube_search
|
| 13 |
|
| 14 |
+
ffrom fastapi import FastAPI, Query
|
| 15 |
|
| 16 |
app = FastAPI()
|
| 17 |
|
| 18 |
@app.get("/")
|
| 19 |
+
async def root(logs: str | None = Query(default=None)):
|
| 20 |
+
if logs == "container":
|
| 21 |
+
return {"message": "Logs container requested (placeholder)"}
|
| 22 |
return {"message": "API active et prête à recevoir des demandes sur /extract"}
|
| 23 |
|
| 24 |
+
|
| 25 |
from fastapi import FastAPI, Request
|
| 26 |
from fastapi.responses import JSONResponse
|
| 27 |
import asyncio
|