(
input_model: str = Form(...),
source_method: str = Form("Default"),
topmost: bool = Form(True),
model_image_size: int = Form(640),
input_device: str = Form("0"),
input_delay: int = Form(30),
resize_factor: int = Form(80),
ai_conf: float = Form(0.20),
video_file: UploadFile | None = File(None),
)
| 1352 | |
| 1353 | @app.post("/api/tests/run/stream") |
| 1354 | async def api_tests_stream( |
| 1355 | input_model: str = Form(...), |
| 1356 | source_method: str = Form("Default"), |
| 1357 | topmost: bool = Form(True), |
| 1358 | model_image_size: int = Form(640), |
| 1359 | input_device: str = Form("0"), |
| 1360 | input_delay: int = Form(30), |
| 1361 | resize_factor: int = Form(80), |
| 1362 | ai_conf: float = Form(0.20), |
| 1363 | video_file: UploadFile | None = File(None), |
| 1364 | ): |
| 1365 | script, cleanup_paths = await _tests_script_and_cleanup( |
| 1366 | input_model, |
| 1367 | source_method, |
| 1368 | topmost, |
| 1369 | model_image_size, |
| 1370 | input_device, |
| 1371 | input_delay, |
| 1372 | resize_factor, |
| 1373 | ai_conf, |
| 1374 | video_file, |
| 1375 | ) |
| 1376 | return StreamingResponse( |
| 1377 | _stream_tests(script, cleanup_paths), |
| 1378 | media_type="text/plain; charset=utf-8", |
| 1379 | ) |
| 1380 | |
| 1381 | |
| 1382 | @app.get("/", include_in_schema=False, response_model=None) |
nothing calls this directly
no test coverage detected