Merge pull request #2844 from pipecat-ai/aleix/runner-files-path
runner: allow subdirectories in --folder
This commit is contained in:
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- The runner `--folder` argument now supports downloading files from
|
||||||
|
subdirectories.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Fixed an issue where `RimeHttpTTSService` and `PiperTTSService` could generate
|
- Fixed an issue where `RimeHttpTTSService` and `PiperTTSService` could generate
|
||||||
|
|||||||
@@ -217,7 +217,7 @@ def _setup_webrtc_routes(
|
|||||||
"""Redirect root requests to client interface."""
|
"""Redirect root requests to client interface."""
|
||||||
return RedirectResponse(url="/client/")
|
return RedirectResponse(url="/client/")
|
||||||
|
|
||||||
@app.get("/files/{filename}")
|
@app.get("/files/{filename:path}")
|
||||||
async def download_file(filename: str):
|
async def download_file(filename: str):
|
||||||
"""Handle file downloads."""
|
"""Handle file downloads."""
|
||||||
if not folder:
|
if not folder:
|
||||||
|
|||||||
Reference in New Issue
Block a user